?
Dieses Dokument verwendet PHP-Handbuch für chinesische Websites Freigeben
Output filter plugins operate on a template's output, after the
template is loaded and executed, but before the output is displayed.
輸出過(guò)濾器插件的作用是,在裝載并執(zhí)行完一個(gè)模板之后顯示模板之前,操作該模板的輸出。
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.
輸出過(guò)濾器函數(shù)第一個(gè)參數(shù)是需要處理的模板輸出,第二個(gè)參數(shù)是調(diào)用這個(gè)插件的Smarty實(shí)例。此插件將會(huì)對(duì)參數(shù)進(jìn)行處理并返回相應(yīng)的結(jié)果。
Example 16-9. output filter plugin輸出過(guò)濾器插件
|