Commit 77d30544acca2118bfd7f93058235fa1576fc58c
Committed by
Yarik
1 parent
64aac2e6
Начата разработка блога
Showing
8 changed files
with
54 additions
and
0 deletions
Show diff stats
common/config/main.php
| @@ -8,6 +8,9 @@ return [ | @@ -8,6 +8,9 @@ return [ | ||
| 8 | 'userClass' => 'common\models\User' | 8 | 'userClass' => 'common\models\User' |
| 9 | ] | 9 | ] |
| 10 | ], | 10 | ], |
| 11 | + 'blog' => [ | ||
| 12 | + 'class' => 'common\modules\blog\Module', | ||
| 13 | + ], | ||
| 11 | ], | 14 | ], |
| 12 | 'components' => [ | 15 | 'components' => [ |
| 13 | 'cache' => [ | 16 | 'cache' => [ |
| 1 | +<?php |
common/modules/blog/controllers/ArticleController.php
0 → 100644
common/modules/blog/controllers/DefaultController.php
0 → 100644
| 1 | +<?php |
frontend/controllers/SiteController.php
| @@ -261,7 +261,11 @@ class SiteController extends Controller | @@ -261,7 +261,11 @@ class SiteController extends Controller | ||
| 261 | 'model' => $model, | 261 | 'model' => $model, |
| 262 | ]); | 262 | ]); |
| 263 | } | 263 | } |
| 264 | +<<<<<<< 64aac2e6acdbc009a3b87da32cede2c5c6d7b17d | ||
| 264 | 265 | ||
| 266 | +======= | ||
| 267 | + | ||
| 268 | +>>>>>>> aa2b5a028dc8d6406f78928a067b2c853625fb95 | ||
| 265 | public function actionOptions() { | 269 | public function actionOptions() { |
| 266 | $option_model = new Options(); | 270 | $option_model = new Options(); |
| 267 | $option_list = $option_model->find()->where(1)->all(); | 271 | $option_list = $option_model->find()->where(1)->all(); |
| @@ -312,6 +316,9 @@ class SiteController extends Controller | @@ -312,6 +316,9 @@ class SiteController extends Controller | ||
| 312 | } else { | 316 | } else { |
| 313 | return $this->render('index'); | 317 | return $this->render('index'); |
| 314 | } | 318 | } |
| 319 | +<<<<<<< 64aac2e6acdbc009a3b87da32cede2c5c6d7b17d | ||
| 315 | 320 | ||
| 321 | +======= | ||
| 322 | +>>>>>>> aa2b5a028dc8d6406f78928a067b2c853625fb95 | ||
| 316 | } | 323 | } |
| 317 | } | 324 | } |