|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Guilli Smarty n00b
Joined: 15 Jun 2011 Posts: 3
|
Posted: Tue Jul 19, 2011 10:05 am Post subject: Problème de syntaxe sur un if |
|
|
Bonjour,
Je voudrais faire une boucle if:
Code: | {if $page_name != 'product' or $page_name != 'order'}
<div id="left_column" class="left_column">{$HOOK_LEFT_COLUMN}</div>
{/if} |
Mais visiblement la double condition est mal interprétée et ça ne marche pas. J'ai fais une erreur de syntaxe ?
merci |
|
Back to top |
|
gtraxx Smarty Regular
Joined: 08 Jan 2008 Posts: 56
|
Posted: Mon Aug 01, 2011 9:43 am Post subject: |
|
|
Visiblement c'est du prestashop.
il faut savoir si les variables sont définie pour commencer $page_name retourne quoi exactement ?
Bien vérifier que chaque variable dans le template fonctionne correctement et a ce moment appliquer la condition qui semble correct au premier regard. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|