Yii Framework Forum: Extending CWebUser - Yii Framework Forum

Jump to content

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

Extending CWebUser Rate Topic: -----

#1 User is offline   manilodisan 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 80
  • Joined: 17-September 09
  • Location:Bucharest

Posted 09 October 2009 - 11:40 AM

Pardon my stupidity but I'm unable to overwrite this class to place some more things in login/logout actions. I created a new class WB_CWebUser which extends CWebUser and what to do with it now? Currently I use Yii::app()->user->login but how do I instruct Yii::app()->user to use my new class?
0

#2 User is offline   manilodisan 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 80
  • Joined: 17-September 09
  • Location:Bucharest

Posted 09 October 2009 - 11:51 AM

Found it, it should be added in the config file. You can delete this thread, sorry.
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