Is there a way to include different files from a template?
| From: | Peter Schumacher | Date: | Thu, 16 May 2002 11:32:51 +0000 |
| Subject: | Is there a way to include different files from a template? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-4212@lists.php.net to get a copy of this message | ||
Hi Guys,
I'm working on a site that has the usual news, calendar etc.
I know that it's possible to include a template from a template. But is it
possible to specify this in a dynamic way?
An example,
// Main Template
bla bla bla
if $mode=news include news.tpl
if $mode=calendar include calendar.tpl
bla bla bla
Regards,
Peter Schumacher