From 38c043fe9a2686d94704cd47fbdb8d573c58c5c7 Mon Sep 17 00:00:00 2001 From: xchenhao Date: Sat, 5 Oct 2019 01:35:46 +0800 Subject: [PATCH] update footer copyright && changyan --- frontend/config/main-local.php | 1 + frontend/controllers/ArticleController.php | 2 ++ frontend/views/article/view.php | 2 +- frontend/views/layouts/footer.php | 6 +++--- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/frontend/config/main-local.php b/frontend/config/main-local.php index e4e5876..e746079 100755 --- a/frontend/config/main-local.php +++ b/frontend/config/main-local.php @@ -14,6 +14,7 @@ if (!YII_ENV_TEST) { $config['bootstrap'][] = 'debug'; $config['modules']['debug'] = [ 'class' => 'yii\debug\Module', + //'allowedIPs' => ['39.96.69.155'], ]; // $config['bootstrap'][] = 'gii'; // $config['modules']['gii'] = [ diff --git a/frontend/controllers/ArticleController.php b/frontend/controllers/ArticleController.php index 9973769..66617fe 100755 --- a/frontend/controllers/ArticleController.php +++ b/frontend/controllers/ArticleController.php @@ -75,6 +75,8 @@ class ArticleController extends Controller { $model = Article::find()->where(['id' => $id])->one(); $category = Category::getAllTree(0, 2); + + $this->view->title = $model->title; return $this->render('view', [ 'model' => $model, 'category' => $category, diff --git a/frontend/views/article/view.php b/frontend/views/article/view.php index bfeb34f..dac2384 100755 --- a/frontend/views/article/view.php +++ b/frontend/views/article/view.php @@ -70,7 +70,7 @@ diff --git a/frontend/views/layouts/footer.php b/frontend/views/layouts/footer.php index 1057308..b9732b9 100644 --- a/frontend/views/layouts/footer.php +++ b/frontend/views/layouts/footer.php @@ -47,12 +47,12 @@ use common\models\Links; - + -- GitLab