PHP as template engine stored in Mysql - Whitelist Functions
问题 While I have been reading through countless posts about using PHP as a template engine (using output buffering), I'm still trying to make a case for it. As I'm wondering if I could use PHP as a template engine for a web app (users will be able to change the layout themselves) -- I still don't find any info regarding the following: Store the templates in a MYSQL database Eval them BUT only include functions that are whitelisted (to give them only access to a limited set of functions -- while,