Fix issue PHP Templating