Commit 8c194d7c3db8339d3ce5081d8b9d8b75ce132382

Authored by Yarik
1 parent b6558af1

Устранен баг после восстановления #1

backend/views/layouts/left.php
@@ -30,7 +30,7 @@ @@ -30,7 +30,7 @@
30 [ 30 [
31 'options' => ['class' => 'sidebar-menu'], 31 'options' => ['class' => 'sidebar-menu'],
32 'items' => [ 32 'items' => [
33 - ['label' => 'Страница', 'icon' => 'fa fa-file-code-o', 'url' => ['/page/']], 33 + ['label' => Yii::t('app', 'Pages'), 'icon' => 'fa fa-file-code-o', 'url' => ['/page/']],
34 ['label' => 'Каталог', 'icon' => 'fa fa-file-code-o', 'url' => ['/catalog/']], 34 ['label' => 'Каталог', 'icon' => 'fa fa-file-code-o', 'url' => ['/catalog/']],
35 ['label' => 'Меню', 'icon' => 'fa fa-file-code-o', 'url' => ['/menu/']], 35 ['label' => 'Меню', 'icon' => 'fa fa-file-code-o', 'url' => ['/menu/']],
36 ['label' => 'Заявки', 'icon' => 'fa fa-file-code-o', 'url' => ['/site/requests/']], 36 ['label' => 'Заявки', 'icon' => 'fa fa-file-code-o', 'url' => ['/site/requests/']],
common/modules/blog/controllers/DefaultController.php
@@ -7,6 +7,6 @@ class DefaultController extends Controller @@ -7,6 +7,6 @@ class DefaultController extends Controller
7 { 7 {
8 public function actionIndex() 8 public function actionIndex()
9 { 9 {
10 - echo "hello"; 10 + return $this->render('index');
11 } 11 }
12 } 12 }
common/translation/ru/app.php
@@ -22,5 +22,6 @@ return [ @@ -22,5 +22,6 @@ return [
22 'name' => 'Название', 22 'name' => 'Название',
23 'one_name' => 'Имя', 23 'one_name' => 'Имя',
24 'message' => 'Сообщение', 24 'message' => 'Сообщение',
25 - 'Feedback' => 'Обратная связь' 25 + 'Feedback' => 'Обратная связь',
  26 + 'Pages' => 'Страницы',
26 ]; 27 ];
27 \ No newline at end of file 28 \ No newline at end of file
frontend/models/Option.php
@@ -126,13 +126,9 @@ class Option extends \yii\db\ActiveRecord @@ -126,13 +126,9 @@ class Option extends \yii\db\ActiveRecord
126 'success' => false 126 'success' => false
127 ); 127 );
128 } 128 }
129 -  
130 -<<<<<<< 1fd2bdb43fc5cfdcf100cac8b72e67fd81e7f0fa  
131 - public static function create($post, $modeldb, $model_id, $fields) {  
132 -======= 129 +
133 public static function create($post, $modeldb, $model_id, $fields, $multiple) { 130 public static function create($post, $modeldb, $model_id, $fields, $multiple) {
134 $multiple = boolval($multiple); 131 $multiple = boolval($multiple);
135 ->>>>>>> 0e0edb85a79343e4d020ff05378179e2323b21bd  
136 $model = new Option(); 132 $model = new Option();
137 $modellang = new OptionLang(); 133 $modellang = new OptionLang();
138 if(!empty($post['Option'])) { 134 if(!empty($post['Option'])) {