maan81
maan81

Reputation: 3609

Module ID not appearing in Gii?

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.

enter image description here

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

Answers (6)

Yogesh Wankhede
Yogesh Wankhede

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

You can use like this

This is my generated output folders

Upvotes: 0

Amine_Info
Amine_Info

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

priyanka
priyanka

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

Chomnan Cheng
Chomnan Cheng

Reputation: 1

I think you should add View Path as: backend\modules\settings\views

Upvotes: -1

surya handoko
surya handoko

Reputation: 354

@app/modules/settings/views/(view name) in view path , we will get same result

Upvotes: 0

ScaisEdge
ScaisEdge

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

Related Questions