Added more YII_ENV constants.
This commit is contained in:
parent
949c567387
commit
7f05967cf5
@ -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(
|
||||||
|
@ -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,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user