public static function setApplication($app) { if(self::$_app===null || $app===null) self::$_app=$app; else throw new CException(Yii::t('yii','Yii application can only be created once.')); }
public static function setApplication($app) { if (self::$_app === null || $app === null) { self::$_app = $app; } }