If you would like to add php code to your smarty templates, you can do so by adding the {php} tag directly into your template. 

In this example, we will include an outside php script directly into our template

{php}
include('path/to/myscript.php');
{/php}

You can also add custom PHP code into your templates, as long as you use the {php} tag.

In the following example, we will use php code to print out the date...

{php}

echo(date("l dS \of F Y h:i:s A") . "<br />");

{/php}

For more information about the {php} tag, you can view the Smarty Manual Here

 

If you have a header file you would like to include into your template, you can use the 'fetch' tag to do so.  Like this:


{fetch file="http://www.mysite.com/includes/header.html"}