Haider
Level 1
Write the reason you're deleting this FAQ
I have this array in PHP being passed to smarty:
unansweredTopics_arr
I want to create an if statement and if there is a count of more than 0 items, display the contents of the array by looping through it. If there are no items, I want to display some generic text like "No Topics Found".
Is there a way to count the items in an array via Smarty?
Are you sure you want to delete this post?
Are you sure you want to delete this post?
Are you sure you want to delete this post?
jakemadness
I don't know Smarty as well as I would like and still learning it. The best solution I can think of would be to use the smarty {php}{/php} tags and create a function to call like [code]function post_count($x){ }[/code] I don't know Smarty as well as I would like and still learning it. :)
Are you sure you want to delete this post?