|
@@ -11,6 +11,14 @@ class InquirerController extends \yii\web\Controller
|
|
return $this->render('index');
|
|
return $this->render('index');
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public function beforeAction($action)
|
|
|
|
+ {
|
|
|
|
+ if (in_array($action->id, ['ajax'])) {
|
|
|
|
+ $this->enableCsrfValidation = false;
|
|
|
|
+ }
|
|
|
|
+ return parent::beforeAction($action);
|
|
|
|
+ }
|
|
|
|
+
|
|
public function actionView($id){
|
|
public function actionView($id){
|
|
$model = Inquirer::findOne(['id'=>$id]);
|
|
$model = Inquirer::findOne(['id'=>$id]);
|
|
|
|
|