Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Problème de syntaxe sur un if

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French
View previous topic :: View next topic  
Author Message
Guilli
Smarty n00b


Joined: 15 Jun 2011
Posts: 3

PostPosted: Tue Jul 19, 2011 10:05 am    Post subject: Problème de syntaxe sur un if Reply with quote

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
View user's profile Send private message Send e-mail
gtraxx
Smarty Regular


Joined: 08 Jan 2008
Posts: 56

PostPosted: Mon Aug 01, 2011 9:43 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP