Yii Framework Forum: Creating Models for a modules? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Creating Models for a modules? It is possibile or it will be?

#1 User is offline   sensorario 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 1,986
  • Joined: 07-September 10
  • Location:Cesena (Italy)

Posted 24 November 2011 - 06:18 AM

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?
0

#2 User is offline   kokomo 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 281
  • Joined: 23-July 10

Posted 24 November 2011 - 06:51 AM

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

Gii: CRUD creation for module
0

#3 User is offline   Gustavo 

  • Master Member
  • Yii
  • Group: Moderators
  • Posts: 916
  • Joined: 27-July 10
  • Location:Curitiba - Brasil

Posted 24 November 2011 - 07:09 AM

Just use the model Path to specify it, for example, to create it under the 'user' module specify model path like
user.models

--
Extensions:
translate modue - module to handle translations
multiActiveRecord - db selection in models
redisCache - redis cache component
mpCpanel - interact with cpanel api
mUploadify - use uploadify uploader in your application

Gustavo Salomé Silva
3

#4 User is offline   sensorario 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 1,986
  • Joined: 07-September 10
  • Location:Cesena (Italy)

Posted 26 November 2011 - 05:21 AM

View PostGustavo, on 24 November 2011 - 07:09 AM, said:

Just use the model Path to specify it, for example, to create it under the 'user' module specify model path like
user.models



Easy and simple =)
0

#5 User is offline   mbi 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 603
  • Joined: 08-May 09

Posted 14 December 2011 - 05:39 AM

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

#6 User is offline   Bynton 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 20
  • Joined: 09-July 12

Posted 18 July 2012 - 01:28 PM

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users