Skip to content

Instantly share code, notes, and snippets.

@masiorama
Created February 26, 2013 11:34
Show Gist options
  • Save masiorama/5037840 to your computer and use it in GitHub Desktop.
Save masiorama/5037840 to your computer and use it in GitHub Desktop.
PHP: Yii Netbeans completion feature
#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