Advertisement
fernandezekiel

Untitled

Oct 20th, 2012
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. <?php
  2. class WebUser extends CWebUser
  3. {
  4. public function afterLogout()
  5.  
  6. {
  7. $userrecord = new Userrecord();
  8. $userrecord->userName = Yii::app()->user->name; // is this working?
  9. $userrecord->save();
  10. parent::afterLogout();
  11. }
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement