Absolute prevention of content pollution in output buffer
I have this following code that basically renders partials. However I was trying to find a way to prevent polluting $templatePath
variable into the template (the variable is currently accessible from template which is not what I want). I only want $template
and $viewHelper
variables to be accessible in the template scope. Do you have any idea?
PHP – absolute prevention of content pollution in output buffer
I have this following code that basically renders partials. However I was trying to find a way to prevent polluting $templatePath
variable into the template (the variable is currently accessible from template which is not what I want). I only want $template
and $viewHelper
variables to be accessible in the template scope. Do you guys have any idea? Thank you.