You are here: RE: [SMARTY] Re: Problem with template loading « Smarty Templates Posts « IT news, forums, messages
RE: [SMARTY] Re: Problem with template loading

Posted by George Pitcher on 10/18/44 11:15

Pete,

Thanks for the suggestion. I actually solved the problem by switching errors
on.

Cheers

George

> -----Original Message-----
> From: pete M [mailto:pmorgan@ukds.net]
> Sent: 6 May 2005 12:08 pm
> To: smarty-general@lists.php.net
> Subject: [SMARTY] Re: Problem with template loading
>
>
> 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
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

 

Navigation:

[Reply to this 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

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