Pārlūkot izejas kodu

Reorganized captcha code.

Qiang Xue 12 gadi atpakaļ
vecāks
revīzija
da0afe1957
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 1 1
      controllers/SiteController.php
  2. 1 1
      views/site/contact.php

+ 1 - 1
controllers/SiteController.php

@@ -13,7 +13,7 @@ class SiteController extends Controller
 	{
 		return array(
 			'captcha' => array(
-				'class' => 'yii\web\CaptchaAction',
+				'class' => 'yii\captcha\CaptchaAction',
 				'fixedVerifyCode' => YII_ENV_DEV ? 'testme' : null,
 			),
 		);

+ 1 - 1
views/site/contact.php

@@ -1,7 +1,7 @@
 <?php
 use yii\helpers\Html;
 use yii\widgets\ActiveForm;
-use yii\widgets\Captcha;
+use yii\captcha\Captcha;
 
 /**
  * @var yii\base\View $this