I recommend you load the user model in your "WebUser" class like
class WebUser extends CWebUser {
public function getModel()
{
$user = User::model()->findByPk($this->getId());// providing the value returned from getId() is the PK in your user table/model
return $user;
}
}
you can then access the model like $user = Yii::app()->user->getModel(); for the current user.
if($user!==null)
{
// can access all public user AR methods and attributes eg: $user->firstname, $user->status... etc
didn’t you specify the class for the user component in your config to be ‘WebUser’? if you did, then Yii::app()->user will reyurn an instance of WebUser.