Cwebapplication Code Completion Netbeans

I’m probably making a mistake here… but i’ve started using Yii and Netbeans lately (never used them before).

and I can’t have code completion for CWebApplication components…

My Yii::app() resolves to CApplication. is there any solutions/config/workaround so i can have code completion of CWebApplication in netbeans when i do something like.




Yii::app()->clientScript-> // since CClientScript is loaded by CWebApplication i don't have code completion <img src='http://www.yiiframework.com/forum/public/style_emoticons/default/sad.gif' class='bbc_emoticon' alt=':(' />



? thanks

found a fast workaround for CC from CWebApplication components.

use PHPDoc to tell Netbeans if you having the same problem, declare this properties to your framework/base/CApplication.php .





    /** @var CWebUser */

    public $user;

    /** @var CClientScript */

    public $clientScript;

    /** @var CHttpSession */

    public $session;

    /** @var CAssetManager */

    public $assetManager;

    /** @var CThemeManager */

    public $themeManager;

    /** @var IAuthManager */

    public $authManager;

    /** @var IWidgetFactory */

    public $widgetFactory;




and you’re good to go.

I’ve created yii.php file with content




<?php


class Yii

{

    /**

     * @return CWebApplication

     */

    public static function app() {}

}



and saved it under "protected" folder. Autocomplete works.

I’m using NetBeans 7.2.1