Reply to Re: Problem with template loading

Your name:

Reply:


Posted by pete M on 10/18/64 11:15

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация