Page 1 of 1
how to include php file in a tpl file.
Posted: Tue Jun 20, 2006 1:07 am
by tmd_raju
im using fasttemplates, i want to include an php file in an tpl file. i tried using the following code like
1.<td>{php}include('../show.php');{/php}</td>
2.<td>{include_php file="../shoe.php'}</td>
both r not working, the php code is displayed as it is,help me how to include the php file.
Posted: Tue Jun 20, 2006 1:10 am
by Benjamin
Code: Select all
<td><?php include 'folder/filename.tpl'; ?></td>
Posted: Tue Jun 20, 2006 1:47 am
by RobertGonzalez
Does FastTemplates allow executable PHP code? Do they have a manual that you can reference?
Posted: Tue Jun 20, 2006 3:32 am
by JayBird
astions wrote:Code: Select all
<td><?php include 'folder/filename.tpl'; ?></td>
Read the question before answering
Posted: Tue Jun 20, 2006 3:23 pm
by Robert Plank
Everah wrote:Does FastTemplates allow executable PHP code? Do they have a manual that you can reference?
No, they don't.
The point of FastTemplate is no PHP or logic in the templates at all.
Posted: Tue Jun 20, 2006 3:48 pm
by RobertGonzalez
And there you have it, the answer to the OP's question.
Posted: Tue Jun 20, 2006 3:52 pm
by Benjamin
Pimptastic wrote:astions wrote:Code: Select all
<td><?php include 'folder/filename.tpl'; ?></td>
Read the question before answering
I did, I didn't realize that fasttemplates was an application.