Hi there,
I am signed in under "test1@example.com". Why does var_dump(Yii::app()->user) keeps dumping this?:
while var_dump(Yii::app()->user->name), as it is supposed to, displays
?
I am signed in under "test1@example.com". Why does var_dump(Yii::app()->user) keeps dumping this?:
object(CWebUser)[16]
public 'allowAutoLogin' => boolean true
public 'guestName' => string 'Guest' (length=5)
public 'loginUrl' =>
array
0 => string '/site/login' (length=11)
public 'identityCookie' => null
public 'authTimeout' => null
public 'autoRenewCookie' => boolean false
public 'autoUpdateFlash' => boolean true
private '_keyPrefix' => string 'f8fc6cfefb53e67820930c48a32dffc6' (length=32)
private '_access' =>
array
empty
public 'behaviors' =>
array
empty
private '_initialized' (CApplicationComponent) => boolean true
private '_e' (CComponent) => null
private '_m' (CComponent) => null
while var_dump(Yii::app()->user->name), as it is supposed to, displays
string 'test1@example.com' (length=17)
?