
smarty
草山湖
这个作者很懒,什么都没留下…
展开
-
Writing Plugins编写插件
Plugins can be either loaded by Smarty automatically from the filesystem or they can be registered at runtime via one of the register_* API functions. They can also be unregistered by using unregister原创 2006-09-07 15:16:00 · 2723 阅读 · 0 评论 -
Prefilters/Postfilters预滤器/后滤器
Prefilter and postfilter plugins are very similar in concept; where they differ is in the execution -- more precisely the time of their execution.从概念上看,预滤器和后滤器插件都很简单;不同之处就在于它们的执行,更确切地说是它们的执行时刻(非时间段,而是原创 2006-09-07 15:20:00 · 3279 阅读 · 0 评论 -
Modifiers修正器
Modifiers are little functions that are applied to a variable in the template before it is displayed or used in some other context. Modifiers can be chained together.修正器是一些短小的函数,这些函数被应用于模版中的一个变量,然后变量再原创 2006-09-07 15:17:00 · 2706 阅读 · 0 评论 -
Compiler Functions编译函数
Compiler functions are called only during compilation of the template. They are useful for injecting PHP code or time-sensitive static content into the template. If there is both a compiler function a原创 2006-09-07 15:19:00 · 2808 阅读 · 0 评论 -
Naming Conventions 命名约定
Plugin files and functions must follow a very specific naming convention in order to be located by Smarty. 插件文件和函数必须遵循特定的命名约定以便Smarty识别。 The plugin files must be named as follows: 插件文件必须命名如下:原创 2006-09-07 15:24:00 · 3156 阅读 · 0 评论 -
How Plugins Work 插件如何工作
Plugins are always loaded on demand. Only the specific modifiers, functions, resources, etc invoked in the templates scripts will be loaded. Moreover, each plugin is loaded only once, even if you have原创 2006-09-07 15:23:00 · 2708 阅读 · 0 评论 -
Inserts插入
Insert plugins are used to implement functions that are invoked by {insert} tags in the template. 插入插件用来执行在模板中被{insert}标记调用的函数 。 string smarty_insert_name(array $params, object &$smarty) T原创 2006-09-07 15:22:00 · 3410 阅读 · 1 评论 -
Resources资源
Resource plugins are meant as a generic way of providing template sources or PHP script components to Smarty. Some examples of resources: databases, LDAP, shared memory, sockets, and so on.资源插件被认为是为Sm原创 2006-09-07 15:21:00 · 2959 阅读 · 0 评论 -
Block Functions块函数
void smarty_block_name(array $params, mixed $content, object &$smarty) Block functions are functions of the form: {func} .. {/func}. In other words, they enclose a template block and operat原创 2006-09-07 15:18:00 · 3554 阅读 · 0 评论 -
Template Functions 模板函数
void smarty_function_name(array $params, object &$smarty) All attributes passed to template functions from the template are contained in the $params as an associative array. Either access t原创 2006-09-07 15:17:00 · 3028 阅读 · 0 评论 -
Output Filters输出过滤器
Output filter plugins operate on a templates output, after the template is loaded and executed, but before the output is displayed.输出过滤器插件的作用是,在装载并执行完一个模板之后显示模板之前,操作该模板的输出。 string smarty_outpu原创 2006-09-07 15:20:00 · 3944 阅读 · 0 评论