in reply to HTML::Template - how to handle TMPL_LOOP parameter if no rows returned
If you need to handle the special case of having no data, you can do something like this in your template file:
<TMPL_IF LOGGED_EVENTS> <TMPL_LOOP LOGGED_EVENTS> ... </TMPL_LOOP> <TMPL_ELSE> No Data! </TMPL_IF>
|
|---|