diff --git a/frontend/assets/AppAsset.php b/frontend/assets/AppAsset.php index 015500f..e8e8ce9 100755 --- a/frontend/assets/AppAsset.php +++ b/frontend/assets/AppAsset.php @@ -22,7 +22,6 @@ class AppAsset extends AssetBundle 'https://fonts.googleapis.com/css?family=Roboto:400,700&subset=cyrillic,latin', ]; public $js = [ - 'http://code.jquery.com/jquery-2.1.4.min.js', '/js/script.js', //'http://maps.google.com/maps/api/js?sensor=false', '/js/markerclusterer.js', @@ -34,12 +33,10 @@ class AppAsset extends AssetBundle '/js/autoresize.jquery.js', '/js/jquery.MultiFile.js', '/js/myGallery_min.js', -// '/js/forms.js', 'js/fieldWidget.js' ]; public $depends = [ - //'yii\web\YiiAsset', - +// 'yii\web\YiiAsset', ]; public $jsOptions = array( 'position' => \yii\web\View::POS_HEAD diff --git a/frontend/controllers/SiteController.php b/frontend/controllers/SiteController.php index 3fe1473..d138150 100755 --- a/frontend/controllers/SiteController.php +++ b/frontend/controllers/SiteController.php @@ -50,6 +50,10 @@ class SiteController extends Controller } + public function beforeAction($action) { + $this->enableCsrfValidation = false; + return parent::beforeAction($action); + } public function actionCity($q = null, $id = null) { \Yii::$app->response->format = \yii\web\Response::FORMAT_JSON; @@ -96,11 +100,13 @@ class SiteController extends Controller public function actionFormsModalFav() { + return $this->renderAjax('forms-modal-fav', []); } public function actionFormsModalOffer() { + return $this->renderAjax('forms-modal-offer', []); } diff --git a/frontend/views/layouts/main.php b/frontend/views/layouts/main.php index 34907a8..9a2b3a2 100755 --- a/frontend/views/layouts/main.php +++ b/frontend/views/layouts/main.php @@ -6,7 +6,6 @@ use yii\helpers\Html; use yii\widgets\Menu; use frontend\assets\AppAsset; - AppAsset::register($this); ?> @@ -18,12 +17,15 @@ AppAsset::register($this); + + + <?= Html::encode($this->title) ?> - + head() ?> -- libgit2 0.21.4