Created
February 26, 2013 11:34
-
-
Save masiorama/5037840 to your computer and use it in GitHub Desktop.
PHP: Yii Netbeans completion feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Tools->Options->Miscellaneous->Files->Ignored Files Pattern | |
^(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(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment