Context
Context. Every Smarty template compiles under a security policy that lists which PHP functions may be called. A call outside the list does not render partially: the template fails to compile and the visitor gets the error page, with a message that names the call. A function and a modifier are checked against different lists: trim($x) is allowed, $x|trim is not, even though it is the same PHP function.