Support Forums

Old 01-30-2009, 11:37 AM   #1
Member
 
Join Date: Aug 2008
Posts: 64
Rep Power: 4
nagrap2 is on a distinguished road
Default Calling a tpl file from within a tpl file

Hi,

If I want to call a template file from within a template file, how would I do that?

For example, if I have a test.php file which calls test.tpl (byt assigning the $body variable to test.tpl), I then want to call another tpl file, say test2.tpl from within test.tpl.

Thanks in advance !!!
__________________
Many Thanks,

Nagrap2

Developer Version 4.1
nagrap2 is offline   Reply With Quote
Old 01-30-2009, 11:46 AM   #2
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,792
Rep Power: 110
Eric Barnes is a jewel in the rough
Default

This should work:
Code:
{include file='test2.tpl'}
http://smarty.net/manual/en/language...on.include.php
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is online now   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
file extensions Grebogreen v3.1 Questions & Support 5 05-06-2007 04:37 PM
External file.php into 68c - way to do it? darek v3.1 Modules & Modifications 7 12-18-2006 02:55 PM
php ini file PilotPete v3.1 Questions & Support 10 10-06-2006 09:26 PM
Maximum File Size for File Upload sporthorsebreeder v3.1 Questions & Support 2 09-02-2006 04:18 PM
Where do I find the file that contains ... Winnie v3.0 Questions & Support 3 04-01-2006 10:17 PM


All times are GMT -4. The time now is 09:07 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0