Latte foreach – how to check for no values in array
Notice: This thread is very old.
- simonjcarr
- Member | 28
Is there a method in Latte that lets you check if an array has any values before running a foreach? I was thing of something like
{foreach $comments as $comment}
{$comment->comment}
{foreach_else}
Sorry there are no comments
{/foreach}