mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-18 01:07:37 +08:00
Added more YII_ENV constants.
This commit is contained in:
@ -14,7 +14,7 @@ class SiteController extends Controller
|
||||
return array(
|
||||
'captcha' => array(
|
||||
'class' => 'yii\web\CaptchaAction',
|
||||
'fixedVerifyCode' => YII_ENV === 'test' ? 'testme' : null,
|
||||
'fixedVerifyCode' => YII_ENV_DEV ? 'testme' : null,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user