Categories > TinyButStrong general >

How do I include php code in my templating files if i give them a tpl.php extension.

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: desbest tynamite
Date: 2007-08-08
Time: 00:56

How do I include php code in my templating files if i give them a tpl.php extension.

How do I include php code in my templating files if i give them a tpl.php extension.
By: TomH
Date: 2007-08-08
Time: 03:05

Re: How do I include php code in my templating files if i give them a tpl.php extension.

Try
$TBS->LoadTemplate(basename($_SERVER['SCRIPT_NAME'], ".php").".tpl.php") ;
or
$TBS->LoadTemplate('nameyourtpl.tpl.php') ;