Guys, I’m trying to generate few models and controllers through console. Model was generated fine, but I can’t generate a controller properly. See a screen below:
yii gii/controller --controllerClass = app\controllers\TestController
Running 'Controller Generator'...
Code not generated. Please fix the following errors:
- controllerClass: Only word characters and backslashes are allowed, and the class name must end with "Controller".
Correct:
yii gii/controller --controllerClass=app\controllers\TestController
Running 'Controller Generator'...
The following files will be generated:
[new] controllers\TestController.php
[new] views\test\index.php
Ready to generate the selected files? (yes|no) [yes]:y