{include file=...} problem
| From: | Peter Billen | Date: | Wed, 03 Jul 2002 15:14:35 +0000 |
| Subject: | {include file=...} problem | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-5175@lists.php.net to get a copy of this message | ||
Hi all,
Is it possible to make the include files also dynamical?
I'd like to use something like: {include file={$page}}, but then it
gives a parse error in my compiled template file. What am I doing wrong?
My site is divided into 3 groups: above: the header (static), left side:
the menu (static), right side: the content (dynamic).
For every other content, I'd like to use another .tpl file, so I can
easily include them with commands such as:
$t->assign("page","forum-contents.html") ..
$t->assign("page","news.html") .
And my second question: is this a good solution to make dynamic blocks
in my site? (with including other template files)
Thanks a lot for this support,
Peter
PS: sorry for my bad English :\