From 01a3e99029031d0be78c721f70c187f143679f26 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Thu, 4 Feb 2016 15:48:39 +0200 Subject: [PATCH] add Vitaliy's widgets --- backend/assets/FileUploadAsset.php | 2 ++ frontend/controllers/SiteController.php | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/assets/FileUploadAsset.php b/backend/assets/FileUploadAsset.php index 0dd7e42..916ebf5 100755 --- a/backend/assets/FileUploadAsset.php +++ b/backend/assets/FileUploadAsset.php @@ -19,9 +19,11 @@ use yii\web\AssetBundle; class FileUploadAsset extends AssetBundle { public $sourcePath = '@bower/blueimp-file-upload/'; + public $css = [ 'css/jquery.fileupload.css' ]; + public $js = [ 'js/vendor/jquery.ui.widget.js', 'js/jquery.iframe-transport.js', diff --git a/frontend/controllers/SiteController.php b/frontend/controllers/SiteController.php index c97ed0e..d45ee4f 100755 --- a/frontend/controllers/SiteController.php +++ b/frontend/controllers/SiteController.php @@ -183,9 +183,8 @@ class SiteController extends Controller * * @return mixed */ - public function actionSignup() + public function actionRegistration() { - $this->layout = 'admin'; $model = new SignupForm(); if ($model->load(Yii::$app->request->post())) { @@ -203,7 +202,7 @@ class SiteController extends Controller } } - return $this->render('signup', [ + return $this->render('registration', [ 'model' => $model, ]); } -- libgit2 0.21.4