Support Forums

Calling a tpl file from within a tpl file

This is a discussion on Calling a tpl file from within a tpl file within the Technical Support forums, part of the Technical Support Forums category; Hi, If I want to call a template file from within a template file, how would I do that? For ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 01-30-2009, 11:37 AM   #1
Customer
 
Join Date: Aug 2008
Posts: 80
Rep Power: 13
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  
Old 01-30-2009, 11:46 AM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 133
Eric Barnes is just really nice Eric Barnes is just really nice
Default

This should work:
Code:
{include file='test2.tpl'}
http://smarty.net/manual/en/language...on.include.php
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Closed Thread

Thread Tools
Display Modes



All times are GMT -4. The time now is 04:25 AM.


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