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.
how to include php file in a tpl file.
Moderator: General Moderators
Code: Select all
<td><?php include 'folder/filename.tpl'; ?></td>- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Read the question before answeringastions wrote:Code: Select all
<td><?php include 'folder/filename.tpl'; ?></td>
-
Robert Plank
- Forum Contributor
- Posts: 110
- Joined: Sun Dec 26, 2004 9:04 pm
- Contact:
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
I did, I didn't realize that fasttemplates was an application.Pimptastic wrote:Read the question before answeringastions wrote:Code: Select all
<td><?php include 'folder/filename.tpl'; ?></td>