Refactored the basic app.

This commit is contained in:
Qiang Xue
2013-08-10 07:33:24 -04:00
parent 8ee92fdb80
commit bc21de98bd
10 changed files with 156 additions and 93 deletions

View File

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