mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 23:09:10 +08:00
Fixes issue #49: finished CAPTCHA feature.
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user