Is there a way to return 'no results' from a custom plugin with the standard conditional of:
{if no_results}{/if}
I have resulted to using:
if ($query->num_rows() > 0) {
} else {
return $this->return_data = "<li><p>Sorry, no results</p></li>";
}
Thanks.