|
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 |
charly71 Smarty Rookie
Joined: 10 Jun 2003 Posts: 6
|
Posted: Wed Oct 22, 2003 10:48 am Post subject: Total (zero) number of section records |
|
|
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 |
|
andre Smarty Pro
Joined: 23 Apr 2003 Posts: 164 Location: Karlsruhe, Germany
|
|
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
|