Re: [SMARTY] Syntax problem
| From: | Paul Lockaby | Date: | Thu, 20 Feb 2003 02:04:28 +0000 |
| Subject: | Re: [SMARTY] Syntax problem | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7971@lists.php.net to get a copy of this message | ||
Laurent Penou wrote:
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 ?
This question was answered yesterday in this thread:
http://marc.theaimsgroup.com/?l=smarty-general&m=104562338914529&w=2
Also, please do not ask a question by replying to someone else's question. It messes up messages threading. :)
~Paul