想找一个smarty+php的简单网站的示例解决方案
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了想找一个smarty+php的简单网站的示例解决方案,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2022字,纯文字阅读大概需要3分钟。
内容图文
想找一个smarty+php的简单网站的示例想找一个smarty+php的简单网站的示例,不知道到那里下载。
例子不需要太复杂,关键是能演示一下smarty的功能和基本用法,大家有这样的例子吗?
我在网上找的要么太复杂,要么只有文档,不适合快速上手学习!望大虾帮一下
------解决方案--------------------
你可以去下载ECSHOP ,网上有个smarty+fak 的的新闻发布系统, 都可以的
------解决方案--------------------
帖子顶起来 因为我也想找一个这样的示例
------解决方案--------------------
TottyAndBaty 说得很好啊,Ecshop 是很好的一个例子。
------解决方案--------------------
看SMARTY手册就行啊..
------解决方案--------------------
看smarty的自带的demo就可以啦,以经很简单了,
或者看一下里面的install文件。
REQUIREMENTS:
Smarty requires PHP 4.0.6 or later.
See the on-line documentation for complete install instructions.
INSTALLATION (quick):
* copy the files under the libs/ directory to a directory that is in your PHP
include_path, or set the SMARTY_DIR constant and put them in this directory.
(if you upgrade from versions before 2.5.0 be aware that up to Smarty 2.4.2
all necessary files where in the distribution's root directory, but are now
in libs/.)
* for each application using Smarty, create a "templates", "configs", and a
"templates_c" directory, be sure to set the appropriate directory settings in
Smarty for them. If they are located in the same directory as your
application, they shouldn't need to be modified. Be sure the "templates_c"
directory is writable by your web server user (usually nobody). chown
nobody:nobody templates_c; chmod 700 templates_c You can also chmod 777 this
directory, but be aware of security issues for multi-user systems. If you are
using Smarty's built-in caching, create a "cache" directory and also chown
nobody:nobody.
* setup your php and template files. A good working example is in the on-line
documentation.
* TECHNICAL NOTE: If you do not have access to the php.ini file, you can change
non-server settings (such as your include_path) with the ini_set() command.
example: ini_set("include_path",".:/usr/local/lib/php");
内容总结
以上是互联网集市为您收集整理的想找一个smarty+php的简单网站的示例解决方案全部内容,希望文章能够帮你解决想找一个smarty+php的简单网站的示例解决方案所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。