|Smarty - the compiling PHP template engine|
|上一篇教材 宏博CMS网站内容管理系统 收集整理||Chapter 15. Advanced Features||下一篇教材|
Template postfilters are PHP functions that your templates are ran through after they are compiled. Postfilters can be either registered or loaded from the plugins directory by using load_filter() function or by setting $autoload_filters variable. Smarty will pass the compiled template code as the first argument, and expect the function to return the result of the processing.
Example 15-3. using a template postfilter