1、修复几处bug
2、前端加入系统标签
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user