PHP - Smarty模板引擎 - Manual手册 - Chapter 12. Smarty Class Variables第十二章Smarty类变量 - $plugins_dir插件文件夹
$plugins_dir
This is the directory or directories where Smarty will look for the plugins that it needs. Default is plugins/ under the SMARTY_DIR. If you supply a relative path, Smarty will first look under the SMARTY_DIR, then relative to the current working directory, then relative to the PHP include_path. If $plugins_dir is an array of directories, Smarty will search for your plugin in each plugin directory in the order they are given .
Technical Note: For best performance, do not setup your $plugins_dir to have to use the PHP include path. Use an absolute pathname, or a path relative to SMARTY_DIR or the current working directory.
Example 12-1. Appending a local plugin dir
<?php
$smarty -> plugins_dir []= 'includes/my_smarty_plugins' ;
?>
Example 12-2. Multiple $plugins_dir
<?php
$smarty -> plugins_dir =array(
'plugins' , //thedefaultunderSMARTY_DIR
'/path/to/shared/plugins' ,
'../../includes/my/plugins'
);
?>
[PHP - Smarty模板引擎 - Manual手册 - Chapter 12. Smarty Class Variables第十二章Smarty类变量 - $plugins_dir插件文件夹]
http://smarty.net/manual/en/variable.plugins.dir.php
[PHP - Smarty模板引擎 - 官方网站]
http://www.smarty.net/
[PHP - Smarty模板引擎 - 下载地址]
当前版本 2.6.22, http://www.smarty.net/do_download.php?download_file=Smarty-2.6.22.tar.gz
全部列表,http://smarty.php.net/download.php
[PHP - Smarty模板引擎 - 相关论坛]
http://php.board.newsmth.net/
http://forum.csdn.net/SList/PHP/
http://www.phpinsider.com/smarty-forum/
http://news.php.net/php.smarty.general
http://news.php.net/php.smarty.dev
http://news.php.net/php.smarty.cvs
[PHP - Smarty模板引擎 - 关键词]
smarty
[PHP - Smarty模板引擎 - Manual手册]
借助cycle实现循环输出值,http://smarty.php.net/manual/en/language.function.cycle.php
Smarty的cat函数,http://smarty.php.net/manual/en/language.modifier.cat.php
Smarty的upper函数,http://smarty.php.net/manual/en/language.modifier.upper.php
[PHP - Smarty模板引擎 - Manual手册 - Chapter 3. Basic Syntax第3章 基础语法]
翻译, Comments注释, http://smarty.php.net/manual/en/language.basic.syntax.php#language.syntax.comments
Math数学运算,http://smarty.php.net/manual/en/language.math.php
[PHP - Smarty模板引擎 - Manual手册 - Chapter 5. Variable Modifiers第5章 变量修饰符]
cat将值连接到给定变量之后,http://smarty.php.net/manual/en/language.modifier.cat.php
upper将字符串转换成大写字母,http://smarty.php.net/manual/en/language.modifier.upper.php
escape转义修饰符, http://smarty.php.net/manual/en/language.modifier.escape.php
[PHP - Smarty模板引擎 - Manual手册 - Chapter 7. Built-in Functions第7章 内建函数]
{config_load}用于从一个配置文件加载配置变量到模板中, http://www.smarty.net/manual/en/language.builtin.functions.php
{foreach},{foreachelse}用于像访问序数数组一样访问关联数组, http://smarty.php.net/manual/en/language.function.foreach.php
{strip}在显示之前删除每行前后多余的空格和回车字符,http://smarty.php.net/manual/en/language.function.strip.php
[PHP - Smarty模板引擎 - Manual手册 - Chapter 8. Custom Functions第8章 自定义函数]
{assign}用于在模板执行过程中设置模板变量,http://smarty.php.net/manual/en/language.custom.functions.php#language.function.assign
{counter}计数器, http://smarty.php.net/manual/en/language.custom.functions.php
[PHP - Smarty模板引擎 - Manual手册 - Chapter 12. Smarty Class Variables第十二章Smarty类变量]
$plugins_dir插件文件夹, http://smarty.net/manual/en/variable.plugins.dir.php
[PHP - Smarty模板引擎 - Manual手册 - 第13章 Smarty类方法]
register_function()动态注册模板函数插件,http://smarty.php.net/manual/en/api.register.function.php
assign_by_ref()按引用赋值,http://smarty.php.net/manual/en/api.assign.by.ref.php
运维网声明
1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网 享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com