
yaf
「已注销」
这个作者很懒,什么都没留下…
展开
-
window ,linux yaf创建目录
cd tools/cg原创 2017-08-21 14:40:50 · 304 阅读 · 0 评论 -
Yaf整合Smarty模板引擎
将Smarty文件夹放在library目录下面在Smarty目录下面添加Adapter.php,代码如下:[php] view plain copy print?Yaf_Loader::import( "Smarty/Smarty.class.php"); Yaf_Loader::import( "Smarty/sysplu转载 2017-08-21 16:19:22 · 994 阅读 · 0 评论 -
smarty使用指南
在PHP中我们会使用date函数来获取当前的时间,实例代码如下:date("Y-m-dH:i:s"); //该结果会显示为:2010-07-27 21:19:36 的模式但是在Smarty 模板中我们就不能使用date 了,而是应该使用 now 来获取当前的时间,实例代码如下:{$smarty.now} //该结果会显示为:1280236776的时间戳模式原创 2017-09-01 17:28:38 · 381 阅读 · 0 评论