Making all PHP file output pass through a “filter file” before being displayed

后端 未结 5 1799
傲寒
傲寒 2020-12-17 02:43

Is there any way for all my PHP and/or HTML file output to be \"filtered\" before being displayed in the browser? I figured that I could pass it through a global function b

5条回答
  •  没有蜡笔的小新
    2020-12-17 03:07

    Have a look at using Smarty. It's a templating system for PHP, that is good practice to use, and into which you can plug global output filters.

提交回复
热议问题