2

i am using the gii generator to create a module.

the issue is when i try to create a form or some model for that module... i can't tell it to generate those files in that module... it only does it in the main application folders.

any ideas?

thanks.enter image description here

Community
  • 1
  • 1
Patrioticcow
  • 26,422
  • 75
  • 217
  • 337

1 Answers1

3

To create a model for a specific module in yii you can give input to the model path text field like 'application.modules..models'.

Kapil gopinath
  • 1,053
  • 1
  • 8
  • 18
  • where is this from? is there an example? – Patrioticcow Dec 20 '12 at 06:29
  • 1
    I too had faced the same problem and referring some post helped me which I dont remember. Please try this link http://www.yiiframework.com/forum/index.php?/topic/9724-gii-crud-creation-for-model-in-module/ – Kapil gopinath Dec 20 '12 at 06:38