Parsing one template into another

From: Date: Wed, 26 Sep 2001 06:21:14 +0000
Subject: Parsing one template into another
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1548@lists.php.net to get a copy of this message
Hi, Firstly, my previous experience of templates has been with PHLib, but I've finally decided to take the plunge and learn smarty as well :-) Usually when using templates I have an outer one containing the page design, and an inner one containing everything between the <body> tags, as my designer doesn't like working with header/footer files (they can't be edited in DW/Golive). Is there any way to parse one template into another using smarty? The other way I've done it is to make header/footer functions in one file, and then all you need to do is: include("template"); page_header(); . . . page_footer(); but of course that would mix PHP in the templates.... Thanks, Peter. ---oOo--- Do you sendcard? http://www.sendcard.f2s.com/ PHP postcard script supporting 9 databases! ---oOo---

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