Answer the question
In order to leave comments, you need to log in
Error when trying to generate CRUD in Yii2?
When trying to generate CRUD in Yii2, errors appear under the following fields.
1. Model Class - Class 'User' does not exist or has syntax error.
2. Search Model Class - The class name must contain fully qualified namespace name.
3. Controller Class - The class name must contain fully qualified namespace name.
At the same time, the model exists for everyone. What is the problem?
Answer the question
In order to leave comments, you need to log in
There you need to prescribe the name of the class, along with the namespace. That is, not User, but for example app\models\User, not SiteController, but app\controllers\SiteController.
either like this:
(it doesn't work for me on osx with one slash, it gives the same error)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question