
Smarty
PeakXin
Always keep a learning heart.
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Smarty学习总结
1、常量url:http://localhost/mvc/index.php?c=index&m=indexhtml代码: 获取当前时间{$smarty.now} $SCRIPT_NAME:{$SCRIPT_NAME} SERVER_NAME:{$smarty.server.SERVER_NAME} REQUEST_URI:{$smarty.server.REQUEST_原创 2015-05-08 16:28:30 · 536 阅读 · 0 评论 -
Smarty学习2——如果调用模版和模版注释
请结合Smarty学习1——安装和配置模版文件index.tpl<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>demo</title></head><body> {* 注释信息 *}Hello {$name}, welcome to Smarty!</body></html>原创 2016-06-08 10:36:27 · 357 阅读 · 0 评论 -
Smarty学习1——安装和配置
以我的项目目录参考,安装和配置都在/index.php文件下进行1、项目目录/ demo/ templates/ index.tpl templates_c/ configs/ cache/ index.php libs/ …… index.php/原创 2016-06-08 10:24:21 · 691 阅读 · 0 评论