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

[Résolu] Condition if ne fonctionne pas

 
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
Hayreon
Smarty Rookie


Joined: 20 Sep 2008
Posts: 6

PostPosted: Sat Sep 20, 2008 8:38 am    Post subject: [Résolu] Condition if ne fonctionne pas Reply with quote

Bonjour,

J'ai un probleme avec une condition if() qui ne fonctionne pas, sans raison apparente.

Code:
{if $totalpages > 1}
<div class="click_to_pages">Pages 1 | 2</div>
{/if}


Dans mon code php, en faisant echo $totalpages il m'affiche 2 donc mon div devrai apparaitre non ?

Merci par avance Smile


Edite : Désolé, je pensais qu'il n'était pas nécessaire d'attribuer la variable au template :/
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