Added more YII_ENV constants.

This commit is contained in:
Qiang Xue
2013-07-31 07:18:59 -04:00
parent 5d9c23c67b
commit eda171e1be
7 changed files with 22 additions and 10 deletions

View File

@ -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,
),
);
}