Reputation: 3609
I am not getting Module ID as shown in the Youtube tutorial https://www.youtube.com/watch?v=GtHB58-JA38 , 7:33
I am a beginner in Yii, and would be thankful for the responses.
I mean, I am not able to create a CRUD specific to a module
After creating a Module, how to create CRUD for a module using Gii ?
Upvotes: 0
Views: 643
Reputation: 73
It Worked for me
Model Class : backend\modules\students\models\Pdf
Search Model Class : backend\modules\students\models\PdfSearch
Controller Class : backend\modules\students\controllers\PdfController
View Path : @backend\modules\students\views\pdf
Upvotes: 0
Reputation: 1
I had the same thing, you have just add an '@' on the beginning of the view path :
@backend\modules\settings\views\companies
Upvotes: 0
Reputation: 11
You can set the view as backend\modules\settings\views\companies
. By doing that, I got the same files as mentioned in the code file.
Upvotes: 1
Reputation: 1
I think you should add View Path as: backend\modules\settings\views
Upvotes: -1
Reputation: 354
@app/modules/settings/views/(view name) in view path , we will get same result
Upvotes: 0
Reputation: 133370
If you need relate to the settings module in crud for create the normal CRUD view
in the Module id you should digit
settings
Upvotes: 0