Hey guys ,
I have used
Yii::app()->user->getId();
but am not getting the id rather am getting a user name. Can anyone pls tel me how to get id??
Thanks sally
Hey guys ,
I have used
Yii::app()->user->getId();
but am not getting the id rather am getting a user name. Can anyone pls tel me how to get id??
Thanks sally
Hey,
I got ans dude’s. Actually in user identity function I missed pointer
else
{
$this_id = $user->id;
// print_r($this->_id);exit;
$this->errorCode = self::ERROR_NONE;
}
After I put I got the answer.
Thanks