1、修复几处bug
2、前端加入系统标签
This commit is contained in:
@@ -15,19 +15,19 @@ class Front extends Base{
|
|||||||
$theme = 'default';
|
$theme = 'default';
|
||||||
$module = $this->request->module();
|
$module = $this->request->module();
|
||||||
if ($module == 'index') {
|
if ($module == 'index') {
|
||||||
$view_path = './template/' . $theme . '/' ;
|
$view_path = '/template/' . $theme . '/' ;
|
||||||
}else{
|
}else{
|
||||||
$view_path = './template/' . $theme . '/' . $module . '/';
|
$view_path = '/template/' . $theme . '/' . $module . '/';
|
||||||
}
|
}
|
||||||
|
|
||||||
$tpl_replace = array(
|
$tpl_replace = array(
|
||||||
'__TPL__' => $view_path,
|
'__TPL__' => $view_path,
|
||||||
'__CSS__' => $view_path . 'static/css/',
|
'__CSS__' => $view_path . 'static/css',
|
||||||
'__JS__' => $view_path . 'static/js/',
|
'__JS__' => $view_path . 'static/js',
|
||||||
'__IMG__' => $view_path . 'static/images/',
|
'__IMG__' => $view_path . 'static/images',
|
||||||
);
|
);
|
||||||
$tpl_conf = array(
|
$tpl_conf = array(
|
||||||
'view_path' => $view_path,
|
'view_path' => '.' . $view_path,
|
||||||
'tpl_replace_string' => $tpl_replace
|
'tpl_replace_string' => $tpl_replace
|
||||||
);
|
);
|
||||||
$this->view->config($tpl_conf);
|
$this->view->config($tpl_conf);
|
||||||
|
|||||||
@@ -136,6 +136,7 @@ return [
|
|||||||
'taglib_begin' => '{',
|
'taglib_begin' => '{',
|
||||||
// 标签库标签结束标记
|
// 标签库标签结束标记
|
||||||
'taglib_end' => '}',
|
'taglib_end' => '}',
|
||||||
|
'taglib_build_in' => 'cx,com\Sent',
|
||||||
],
|
],
|
||||||
|
|
||||||
// 视图输出字符串内容替换
|
// 视图输出字符串内容替换
|
||||||
|
|||||||
@@ -337,7 +337,7 @@ CREATE TABLE `sent_category` (
|
|||||||
`pid` int(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT '上级分类ID',
|
`pid` int(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT '上级分类ID',
|
||||||
`model_id` 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 '排序(同级有效)',
|
`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 '列表每页行数',
|
`list_row` tinyint(3) UNSIGNED NOT NULL DEFAULT '10' COMMENT '列表每页行数',
|
||||||
`meta_title` varchar(50) NOT NULL DEFAULT '' COMMENT 'SEO的网页标题',
|
`meta_title` varchar(50) NOT NULL DEFAULT '' COMMENT 'SEO的网页标题',
|
||||||
`keywords` varchar(255) NOT NULL DEFAULT '' COMMENT '关键字',
|
`keywords` varchar(255) NOT NULL DEFAULT '' COMMENT '关键字',
|
||||||
|
|||||||
Reference in New Issue
Block a user