I am trying to show the output of a plugin I made:
I want to display the variable in the search widget but it does not seem to work.
Code:
vB_Template::preRegister('vbcms_widget_searchwidget_page',array('latestposts' => $latestposts));
It however does work if I register it w/ the header
Code:
vB_Template::preRegister('header',array('test123' => $latestposts));
I cant seem to figure out why I am unable to get it to show inside the widget but I am able to display it in the header.
On another note what is the best hook to use for widgets ? Currently I am using global start