How Plugins Work 插件如何工作
2006-09-07 15:23
543 查看
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 several different instances of Smarty running within the same request.
插件总在需要的时候被装载。只有在模板脚本里调用的特定修饰、函数、资源插件等会被装载。此外,即便在同一个请求中有几个不同的Smarty实体运行,每个插件也只被装载一次。
Pre/postfilters and output filters are a bit of a special case. Since they are not mentioned in the templates, they must be registered or loaded explicitly via API functions before the template is processed. The order in which multiple filters of the same type are executed depends on the order in which they are registered or loaded.
预/补过滤器插件和输出过滤器插件的装载方式有些不同。由于在模板中未被提及,它们必须在模板被处理前通过API函数明确地装入系统。同类型的多个过滤器插件依据被装载的次序先后不同分别先后执行。
The plugins directory can be a string containing a path or an array containing multiple paths. To install a plugin, simply place it in one of the directories and Smarty will use it automatically.
插件目录是包含一条路径信息的字符串或包含多条路径信息的字符串数组。安装插件的时候,将插件置于其中一个目录下,Smarty会自动识别使用。
插件总在需要的时候被装载。只有在模板脚本里调用的特定修饰、函数、资源插件等会被装载。此外,即便在同一个请求中有几个不同的Smarty实体运行,每个插件也只被装载一次。
Pre/postfilters and output filters are a bit of a special case. Since they are not mentioned in the templates, they must be registered or loaded explicitly via API functions before the template is processed. The order in which multiple filters of the same type are executed depends on the order in which they are registered or loaded.
预/补过滤器插件和输出过滤器插件的装载方式有些不同。由于在模板中未被提及,它们必须在模板被处理前通过API函数明确地装入系统。同类型的多个过滤器插件依据被装载的次序先后不同分别先后执行。
The plugins directory can be a string containing a path or an array containing multiple paths. To install a plugin, simply place it in one of the directories and Smarty will use it automatically.
插件目录是包含一条路径信息的字符串或包含多条路径信息的字符串数组。安装插件的时候,将插件置于其中一个目录下,Smarty会自动识别使用。
相关文章推荐
- Oracle Ksplice如何工作?How does Ksplice work?
- 解析Qt的信号-槽机制是如何工作的 - How Qt Signals and Slots Work
- How Do Windows NT System Calls REALLY Work?--Windows NT的系统调用究竟是如何工作的?
- #98 – How Attached Properties Work in WPF(附加属性在WPF中如何工作)
- Quora:How do top programmers work?(顶级程序员是如何工作的?)
- 解析Qt的信号-槽机制是如何工作的 - How Qt Signals and Slots Work
- How browsers work(浏览器是如何工作的)
- Oracle Ksplice如何工作?How does Ksplice work?
- How browsers work 浏览器是如何工作的
- How Qt Signals and Slots Work - Qt的信号-槽机制是如何工作的
- 如何让eclipse插件安装后正常工作
- How browsers work - 浏览器是怎么工作的
- jQuery入门:jQuery是如何工作的 How jQuery Works
- How Update Sequence Number (USN) Works--更新序列号如何工作
- How it works: Linux audio explained--如何工作:Linux音频工作介绍
- how to write extension for firefox -- 如何给firefox编写插件
- AndroidAnnotations——How It Works,AndroidAnnotation是如何工作的
- Lotus Workflow 如何複製工作屬性 How do I copy the job of property
- AltiumDesigner如何安装插件(Plugins)
- How browsers work(浏览器工作原理)