Answer the question
In order to leave comments, you need to log in
How to fix the problem with namespace?
Used yii2 basic
it before and had no problems!
But now you need to use it advanced
, but there is a problem with it!
For some reason, an error occurs with namespace
, the system simply does not see them!
index.php example in frontend:
How can I fix this?
Answer the question
In order to leave comments, you need to log in
Given that you are writing in a storm, I would recommend removing the namespace from the class call.
Then you will have the class itself highlighted in yellow (as it is now on the screen), press alt-enter on it and import the class use block.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question