|
|
@ -7,6 +7,7 @@ use common\modules\forms\forms\FormSearch; |
|
|
|
use common\modules\forms\entities\Form; |
|
|
|
use common\modules\forms\entities\Form; |
|
|
|
use common\modules\pages\entities\Page; |
|
|
|
use common\modules\pages\entities\Page; |
|
|
|
use common\modules\forms\forms\FormForm; |
|
|
|
use common\modules\forms\forms\FormForm; |
|
|
|
|
|
|
|
use yii\helpers\Json; |
|
|
|
use yii\web\NotFoundHttpException; |
|
|
|
use yii\web\NotFoundHttpException; |
|
|
|
use yii\filters\AccessControl; |
|
|
|
use yii\filters\AccessControl; |
|
|
|
use yii\filters\VerbFilter; |
|
|
|
use yii\filters\VerbFilter; |
|
|
@ -91,6 +92,7 @@ class FormController extends Controller |
|
|
|
Yii::$app->session->setFlash('error', $e->getMessage()); |
|
|
|
Yii::$app->session->setFlash('error', $e->getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return $this->render('create', [ |
|
|
|
return $this->render('create', [ |
|
|
|
'model' => $form, |
|
|
|
'model' => $form, |
|
|
|
]); |
|
|
|
]); |
|
|
@ -116,6 +118,7 @@ class FormController extends Controller |
|
|
|
Yii::$app->session->setFlash('error', $e->getMessage()); |
|
|
|
Yii::$app->session->setFlash('error', $e->getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return $this->render('update', [ |
|
|
|
return $this->render('update', [ |
|
|
|
'model' => $form, |
|
|
|
'model' => $form, |
|
|
|
'form_model' => $form_model, |
|
|
|
'form_model' => $form_model, |
|
|
|