The problem: If you type Yii::app()->user<ctrl+space> code completion didn't work. This solve it.
class Yii extends YiiBase { /** * Returns the application singleton or null if the singleton has not been created yet. * @return CWebApplication the application singleton, null if the singleton has not been created yet. */ public static function app() { return self::app(); } }
That's all. Test it. Yii::app()->user->check<ctrl+space>
^(yiilite\.php|CVS|SCCS.....
Create new php file in your project /protected directory named yii.php with this content:
class Yii extends YiiBase { /** * Returns the application singleton or null if the singleton has not been created yet. * @return CWebApplication the application singleton, null if the singleton has not been created yet. */ public static function app() { return self::app(); } }
That's all. Test it. Yii::app()->user->check<ctrl+space>
Be the first person to leave a comment
Please login to leave your comment.