Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Dedicated server web hosting provided by Guru-host.eu.
[Résolu] Condition if ne fonctionne pas

 
Post new topic   Reply to topic    Smarty Forum Index -> Language: French
View previous topic :: View next topic  
Author Message
Hayreon
Smarty Rookie


Joined: 20 Sep 2008
Posts: 5

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:   
Post new topic   Reply to topic    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