Difference between #6 and #7 of
Add information to Yii::app()->user by extending CWebUser (better version)

Revision #7 has been created by emix on Aug 15, 2010, 4:35:07 PM with the memo:

code fix
« previous (#6) next (#8) »

Changes

Title unchanged

Add information to Yii::app()->user by extending CWebUser (better version)

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

Content changed

[...]
return parent::__get($name);
}

public function login($identity, $duration) {
$this->setState('__userInfo', $identity->getUser
info()->attributes());
parent::login($identity, $duration);
}
}
?>
```
[...]
5 0
10 followers
Viewed: 49 374 times
Version: 1.1
Category: Tutorials
Tags: rbac, user, Yii
Written by: emix
Last updated by: Anas AbuDayah
Created on: Aug 15, 2010
Last updated: 10 years ago
Update Article

Revisions

View all history