Hi,
The code looks like:
bootstrap_framework();
vBCms_View_Widget::registerTemplater(vB_View::OT_X HTML, new vB_Templater_vB());
$widgetID = 32; // the id of the widget
$widgettype = 'ExecPhp'; // type of the widget you want to output
$widget = vBCms_Widget::create('vBCms', $widgettype, $widgetID);
$output = $widget->getPageView()->render();
But it throws error for non object as:
Fatal error: Call to a member function getConfig() on a non-object in \packages\vbcms\widget\execphp.php on line 160
Can some body help me in this??
|