From 15d262b05db324a55eef8b357579fbf51425ecbb Mon Sep 17 00:00:00 2001 From: molong Date: Sat, 10 Mar 2018 11:23:35 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BF=AE=E5=A4=8D=E5=87=A0=E5=A4=84b?= =?UTF-8?q?ug=202=E3=80=81=E5=89=8D=E7=AB=AF=E5=8A=A0=E5=85=A5=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/controller/Front.php | 12 ++++++------ application/config.php | 1 + data/sql.sql | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/application/common/controller/Front.php b/application/common/controller/Front.php index b95bf71c..af231dce 100644 --- a/application/common/controller/Front.php +++ b/application/common/controller/Front.php @@ -15,19 +15,19 @@ class Front extends Base{ $theme = 'default'; $module = $this->request->module(); if ($module == 'index') { - $view_path = './template/' . $theme . '/' ; + $view_path = '/template/' . $theme . '/' ; }else{ - $view_path = './template/' . $theme . '/' . $module . '/'; + $view_path = '/template/' . $theme . '/' . $module . '/'; } $tpl_replace = array( '__TPL__' => $view_path, - '__CSS__' => $view_path . 'static/css/', - '__JS__' => $view_path . 'static/js/', - '__IMG__' => $view_path . 'static/images/', + '__CSS__' => $view_path . 'static/css', + '__JS__' => $view_path . 'static/js', + '__IMG__' => $view_path . 'static/images', ); $tpl_conf = array( - 'view_path' => $view_path, + 'view_path' => '.' . $view_path, 'tpl_replace_string' => $tpl_replace ); $this->view->config($tpl_conf); diff --git a/application/config.php b/application/config.php index be09a8ff..5ac58768 100644 --- a/application/config.php +++ b/application/config.php @@ -136,6 +136,7 @@ return [ 'taglib_begin' => '{', // 标签库标签结束标记 'taglib_end' => '}', + 'taglib_build_in' => 'cx,com\Sent', ], // 视图输出字符串内容替换 diff --git a/data/sql.sql b/data/sql.sql index 0aca17aa..28305ddc 100644 --- a/data/sql.sql +++ b/data/sql.sql @@ -337,7 +337,7 @@ CREATE TABLE `sent_category` ( `pid` int(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT '上级分类ID', `model_id` int(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT '绑定模型ID', `sort` int(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT '排序(同级有效)', - `ismenu` int(100) UNSIGNED NOT NULL DEFAULT '0' COMMENT '生成导航返回的ID', + `ismenu` int(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT '生成导航返回的ID', `list_row` tinyint(3) UNSIGNED NOT NULL DEFAULT '10' COMMENT '列表每页行数', `meta_title` varchar(50) NOT NULL DEFAULT '' COMMENT 'SEO的网页标题', `keywords` varchar(255) NOT NULL DEFAULT '' COMMENT '关键字',