Syntax problem
| From: | Laurent Penou | Date: | Thu, 20 Feb 2003 01:21:12 +0000 |
| Subject: | Syntax problem | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7970@lists.php.net to get a copy of this message | ||
Hello
Prior to the new releases this was workin
PHP : $smarty->assign("ajout","ajout0");
TPL : {include file="zannonces/$ajout.tpl"}
Now it's not working any more as expected
I could use this work arroud
TPL : {if $ajout eq "ajout0"}
{include file="zannonces/ajout0.tpl"}
{elseif $ajout eq "ajout1"}
{include file="zannonces/$ajout1.tpl"}
{/if}
But thats painfull
Any ideas ?