mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-11 09:53:19 +01:00
Refactored the basic app.
This commit is contained in:
@@ -12,9 +12,12 @@ class SiteController extends Controller
|
||||
public function actions()
|
||||
{
|
||||
return array(
|
||||
'error' => array(
|
||||
'class' => 'yii\web\ErrorAction',
|
||||
),
|
||||
'captcha' => array(
|
||||
'class' => 'yii\captcha\CaptchaAction',
|
||||
'fixedVerifyCode' => YII_ENV_DEV ? 'testme' : null,
|
||||
'fixedVerifyCode' => YII_ENV_TEST ? 'testme' : null,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user