what is Yii::app() in php framework yii
I am new to yii. I want to know about Yii::app()
. I searched for it, but I am not able to understand it exactly.
Please read information from this link.You will understand it.
YII Documentation
Yii is the Yii
singleton: http://www.yiiframework.com/doc/api/1.1/Yii
Yii::app()
returns the instance of CApplication: http://www.yiiframework.com/doc/api/1.1/CApplication
Which has many handy methods and variables such as user (referenced by Yii::app()->user
which was information about the user)
上一篇: 继续收到错误:重定向