Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

var_dump(Yii::app()->user);

$
0
0
Hi there,
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)

?

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>