Smarty Manual
Prev | Chapter 7. Built-in Functions | Next

# php

php tags allow php to be embedded directly into the template. They will not be escaped, regardless of the $php_handling setting. This is for advanced users only, not normally needed.

Example 7-14. php tags
    {php}
    		// including a php script directly
    		// from the template.
    		include("/path/to/display_weather.php");
    {/php}

Prev | Home | Next
literal | Up | section,sectionelse