Re: Problem with template loading

From: Date: Fri, 06 May 2005 11:07:44 +0000
Subject: Re: Problem with template loading
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12587@lists.php.net to get a copy of this message
George Pitcher wrote:
Hi, I've now built several applications using Smarty. Having just launced our main customer interface yesterday, I'm now concentrating on the staff interface. This was working yesterday and after doing some mods last night and reloading them onto my server this morning, I'm having a problem with some of them loading. For example, on one page I do the following: $smarty->display('header.tpl'); $smarty->display('header_links.tpl'); $smarty->display('copynav.tpl'); $smarty->display('copyactblock.tpl'); $smarty->display('copyright_r.tpl');
That seems a very strange way of doing things.. Why dont you have one page eg page_container.tpl and inside page_container.tpl {include file='header.tpl'} {include file='header_links.tpl'} {include file='copynav.tpl'} {include file='copyactblock.tpl'} {include file='copyright_r.tpl'} and then $smarty->display('page_container.tpl'); regards pete
Now the first four will load but not the last one, which just happens to be the main page. I've tried emptying the templatec_c folder but that doesn't help at all. Can anyone suggest a solution? MTIA George in Oxford


« previous php.smarty.general (#12587) next »