Re: [SMARTY] {include file=...} problem
| From: | Monte Ohrt | Date: | Wed, 03 Jul 2002 15:14:19 +0000 |
| Subject: | Re: [SMARTY] {include file=...} problem | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5176@lists.php.net to get a copy of this message | ||
{include file=$page}
Peter Billen wrote:
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 :\-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.