Commit 77d30544acca2118bfd7f93058235fa1576fc58c

Authored by Yarik
Committed by Yarik
1 parent 64aac2e6

Начата разработка блога

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' => [
common/modules/blog/Module.php 0 → 100644
  1 +<?php
  2 +namespace common\modules\blog;
  3 +
  4 +class Module extends \yii\base\Module
  5 +{
  6 + public function init()
  7 + {
  8 + parent::init();
  9 +
  10 + \Yii::configure($this, require(__DIR__.'/config.php'));
  11 + }
  12 +}
common/modules/blog/config.php 0 → 100644
  1 +<?php
  2 +return [
  3 + 'components' => [
  4 +
  5 + ],
  6 + 'params' => [
  7 + 'test' => 'Hello',
  8 + ],
  9 +];
common/modules/blog/controllers/AjaxController.php 0 → 100644
  1 +<?php
common/modules/blog/controllers/ArticleController.php 0 → 100644
  1 +<?php
  2 +namespace common\modules\blog\controllers;
  3 +
  4 +use yii\web\Controller;
  5 +
  6 +class ArticleController extends Controller
  7 +{
  8 +
  9 +}
common/modules/blog/controllers/DefaultController.php 0 → 100644
  1 +<?php
  2 +namespace common\modules\blog\controllers;
  3 +
  4 +use yii\web\Controller;
  5 +
  6 +class DefaultController extends Controller
  7 +{
  8 + public function actionIndex()
  9 + {
  10 + echo "hello";
  11 + }
  12 +}
common/modules/blog/views/default/index.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 }