Hi,
I am trying to create the model, controller, and views using gii, but get the following error when trying to run code created by Gii doing the following steps
-
run gii and creating the model for a table in my database using the Model Generator option
-
next creat the controller and vies using the crud Crud Generator Option
-
try and access the newly created code
The error is as follows:
Unknown Class – yii\base\UnknownClassException
Unable to find ‘backend\controllers\CollectionController’ in file: C:\wamp\www\bam/backend/controllers/CollectionController.php. Namespace missing?
Any help with this would be greatly appreciated.
Thank you,
Lloyd