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

Total (zero) number of section records

 
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 -> Bugs
View previous topic :: View next topic  
Author Message
charly71
Smarty Rookie


Joined: 10 Jun 2003
Posts: 6

PostPosted: Wed Oct 22, 2003 10:48 am    Post subject: Total (zero) number of section records Reply with quote

I can't write "No records found" when I've an empty section.

This is an example:
Code:
<ul>
{section name=i loop=$elenco}
  {if $smarty.section.i.total lt 1}
  <li>No records found</li>
  {/if}
  <li><a href="link.php?id={$elenco[i].IDrecord}">{$elenco[i].Title}</a></li>
{/section}
</ul>


If I pass an empty array It doesn't return me "No records found". Why?
Back to top
View user's profile Send private message
andre
Smarty Pro


Joined: 23 Apr 2003
Posts: 164
Location: Karlsruhe, Germany

PostPosted: Wed Oct 22, 2003 10:59 am    Post subject: Reply with quote

Cross posting is really not necessary in this forum. For your answer see http://www.phpinsider.com/smarty-forum/viewtopic.php?t=1119
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 -> Bugs 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