Added more YII_ENV constants.

This commit is contained in:
Qiang Xue 2013-07-31 07:18:59 -04:00
parent 949c567387
commit 7f05967cf5
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ return array(
'modules' => array( 'modules' => array(
'debug' => array( 'debug' => array(
'class' => 'yii\debug\Module', 'class' => 'yii\debug\Module',
'enabled' => YII_DEBUG && YII_ENV === 'dev', 'enabled' => YII_DEBUG && YII_ENV_DEV,
), ),
), ),
'components' => array( 'components' => array(

View File

@ -14,7 +14,7 @@ class SiteController extends Controller
return array( return array(
'captcha' => array( 'captcha' => array(
'class' => 'yii\web\CaptchaAction', 'class' => 'yii\web\CaptchaAction',
'fixedVerifyCode' => YII_ENV === 'test' ? 'testme' : null, 'fixedVerifyCode' => YII_ENV_DEV ? 'testme' : null,
), ),
); );
} }