Answer the question
In order to leave comments, you need to log in
What is the correct way to include multiple classes in my own Yii2 component?
Good afternoon!
Recently, I encountered the fact that the connection of classes of my own component was implemented with failure and the compiler displayed this message:
As you can see, the compiler refers to the fact that I specified the method of one of several classes bound to the component and not only in this section of code .
Is it possible to use more than one class in a component file? The code for the controller and my components is available in the comments to the question.
Answer the question
In order to leave comments, you need to log in
How can you be a programmer without perceiving the information that the system tells you?
Yii::$app
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question