diff --git a/common/models/Feedback.php b/common/models/Feedback.php index cae9a3f..3e04658 100644 --- a/common/models/Feedback.php +++ b/common/models/Feedback.php @@ -29,7 +29,7 @@ class FeedBack extends CoreFeedback \himiklab\yii2\recaptcha\ReCaptchaValidator::className(), 'secret' => '6LcmYmcUAAAAACVi_73RmSAIjJlw4BCgQpfUsrPs', 'uncheckedMessage' => 'Please confirm that you are not a bot.', - 'on' => self::SCENARIO_DEFAULT, + ], [ [ diff --git a/frontend/controllers/SiteController.php b/frontend/controllers/SiteController.php index f9fc598..4519253 100755 --- a/frontend/controllers/SiteController.php +++ b/frontend/controllers/SiteController.php @@ -6,7 +6,8 @@ use artbox\catalog\models\Category; use artbox\catalog\models\Product; use artbox\core\models\DummyAlias; - use artbox\core\models\Feedback; + # use artbox\core\models\Feedback; + use common\models\Feedback; use artbox\weblog\models\Article; use common\models\LoginForm; use common\models\PasswordResetRequestForm; @@ -157,7 +158,8 @@ public function actionContact() { $contact = new Feedback(); - return $this->render( + + return $this->render( 'contact', [ 'contact' => $contact, -- libgit2 0.21.4