Re: [SMARTY] include a file assigned by a php variable?!
| From: | Bertrand DUNOGIER | Date: | Thu, 23 May 2002 09:30:29 +0000 |
| Subject: | Re: [SMARTY] include a file assigned by a php variable?! | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4378@lists.php.net to get a copy of this message | ||
AG> i want to use the include function to include different sub templates
AG> regarding some variables.
{include file=$TEMPLATE}
...
$tpl->assign('TEMPLATE', 'footer.tpl');
works on my installation...
Bertrand