Skip to content

Commit f7d8889

Browse files
committed
a
1 parent 05608f3 commit f7d8889

File tree

148 files changed

+27932
-12177
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+27932
-12177
lines changed

config.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
/* 模板配置 */
4+
date_default_timezone_set('Asia/Shanghai');
5+
include_once("smarty_lib/Smarty.class.php"); //导入模板文件
6+
7+
$smarty = new Smarty();//创建smarty对象
8+
9+
$smarty->config_dir = "smarty_lib/Config_File.class.php"; //目录变量
10+
11+
$smarty->caching = false; //是否使用缓存
12+
13+
$smarty->template_dir = "tpl"; //设置模板目录
14+
15+
$smarty->compile_dir = "templates_c";//设置编译目录
16+
17+
$smarty->cache_dir = "smarty_cache";//缓存文件
18+
19+
$smarty->left_delimiter = "{{";
20+
21+
$smarty->right_delimiter="}}";
22+
23+
?>

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<title>Jquey Comps</title>
6-
<meta http-equiv="refresh" content="0; URL=tpl/page/">
6+
<meta http-equiv="refresh" content="0; URL=tpl/page/index.php">
77
</head>
88
<body>
99
</body>

0 commit comments

Comments
 (0)