Yii Framework Forum: Extending your models - Yii Framework Forum

Jump to content

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

Extending your models models with costum functions Rate Topic: -----

#1 User is offline   webscriptz.be 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 58
  • Joined: 24-August 09
  • Location:OLW WAVER, Belgium

Posted 17 January 2010 - 02:28 PM

Hello everyone,

I want to know the best way of extending the models (AR), can anyone maybe guide me to the best practice?

Much appreciated,

-Tim
0

#2 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,016
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 18 January 2010 - 03:33 AM

Can you give a little more detail, please? What do you mean with "extending"?
0

#3 User is offline   dongbeta 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 58
  • Joined: 19-November 09

Posted 11 March 2010 - 10:05 PM

use your own class "ActiveRecord extends CActiveRecord" in your model:

model Exm:

class Exm extends ActiveRecord{

}
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