Creating Models for a modules?


(Sensorario) #1

I’am studing “Extending Yii” from the coockBook. I’ve created the model:

>> model Wiki

And the model is created on my webapp. There is o there will be a way to create a model directly in a module folder like:

>> model wiki Wiki

>> model <module> <ModuleName>

or something like that?


(Mwerlberger85) #2

There was a similar question which should help you with your problem

Gii: CRUD creation for module


(Gustavo) #3

Just use the model Path to specify it, for example, to create it under the ‘user’ module specify model path like


user.models


(Sensorario) #4

Easy and simple =)


(mbi) #5

http://blog.mbischof.de/yiic-shell


(Micheal Kolman) #6

Well you should try to figure out this, create it under the ‘user’ module specify model path.