1
1
123 1232014-10-25 22:52:20
Yii
123 123, 2014-10-25 22:52:20

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

2 answer(s)
H
HeBonpoc, 2014-10-25
@JustFool

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.

A
Alexey Burlakov, 2019-02-15
@redflasher

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 question

Ask a Question

731 491 924 answers to any question