?
? ????? PHP ??? ???? ??? ?? ??
Output filter plugins operate on a template's output, after the
template is loaded and executed, but before the output is displayed.
輸出過濾器插件的作用是,在裝載并執(zhí)行完一個模板之后顯示模板之前,操作該模板的輸出。
string smarty_outputfilter_
name
(string $template_output, object &$smarty)
The first parameter to the output filter function is the template
output that needs to be processed, and the second parameter is the
instance of Smarty invoking the plugin. The plugin is supposed to do
the processing and return the results.
輸出過濾器函數(shù)第一個參數(shù)是需要處理的模板輸出,第二個參數(shù)是調(diào)用這個插件的Smarty實例。此插件將會對參數(shù)進行處理并返回相應(yīng)的結(jié)果。
Example 16-9. output filter plugin輸出過濾器插件
|