diff --git a/common/config/main.php b/common/config/main.php index 21154a7..bc57e5e 100644 --- a/common/config/main.php +++ b/common/config/main.php @@ -8,6 +8,9 @@ return [ 'userClass' => 'common\models\User' ] ], + 'blog' => [ + 'class' => 'common\modules\blog\Module', + ], ], 'components' => [ 'cache' => [ diff --git a/common/modules/blog/Module.php b/common/modules/blog/Module.php new file mode 100644 index 0000000..9a800a5 --- /dev/null +++ b/common/modules/blog/Module.php @@ -0,0 +1,12 @@ + [ + + ], + 'params' => [ + 'test' => 'Hello', + ], +]; diff --git a/common/modules/blog/controllers/AjaxController.php b/common/modules/blog/controllers/AjaxController.php new file mode 100644 index 0000000..b3d9bbc --- /dev/null +++ b/common/modules/blog/controllers/AjaxController.php @@ -0,0 +1 @@ + $model, ]); } +<<<<<<< 64aac2e6acdbc009a3b87da32cede2c5c6d7b17d +======= + +>>>>>>> aa2b5a028dc8d6406f78928a067b2c853625fb95 public function actionOptions() { $option_model = new Options(); $option_list = $option_model->find()->where(1)->all(); @@ -312,6 +316,9 @@ class SiteController extends Controller } else { return $this->render('index'); } +<<<<<<< 64aac2e6acdbc009a3b87da32cede2c5c6d7b17d +======= +>>>>>>> aa2b5a028dc8d6406f78928a067b2c853625fb95 } } -- libgit2 0.21.4