Hiya,
Hopefully this is an easy one for someone to answer.
I am currently making a plugin and I would like to utilise :
{if no_results}
<p>Sorry no results here!!</p>
{/if}
I tried this in a plugin :
function Test_plugin(){
global $TMPL;
return $TMPL->no_results();
}
with obviously the rest of the needed plugin code around it such as class etc but all I get is an empty page spat out. Nothing in the source code apart from the rest of the HTML markup that I have placed in there.
I just need to be able to create a no_results conditional so that if my plugin has no results then I can place a message on the screen. I had seen this done in other plugins / extensions and can’t really see where I am going wrong. I thought it was just as simple as placing :
return $TMPL->no_results();
into my plugin and then the text between my conditional tag in the template would show but it seems like there must be more to it than that as nothing is being spat out to the page at all.
Any help with understanding this would be greatly appreciated.
Thanks in advance for any help on this one.
Best wishes,
Mark
