Fixes issue #49: finished CAPTCHA feature.

This commit is contained in:
Qiang Xue
2013-05-08 15:27:06 -04:00
parent c5bad9ea1b
commit 96fd37de2e
12 changed files with 556 additions and 6 deletions

View File

@@ -6,6 +6,15 @@ use app\models\ContactForm;
class SiteController extends Controller
{
public function actions()
{
return array(
'captcha' => array(
'class' => 'yii\web\CaptchaAction',
),
);
}
public function actionIndex()
{
echo $this->render('index');