We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Widget: registration | Forum

fiamma
fiamma Jun 30 '16
Hi all,


when a custom widget ha been created, in the following phase "Adding a widget" (from tutorial  ):

...

$widgetService = BOL_ComponentAdminService::getInstance();   $widget = $widgetService->addWidget('BASE_CMP_CustomHtml', true); // Register the widget. The first parameter is the name of the widget class. The second parameter stands for whether the widget can be cloned, or may have only one sample on the page\\ $widgetPlace = $widgetService->addWidgetToPlace($widget, BOL_ComponentService::PLACE_DASHBOARD); // Add the widget to the page ...

...

How  can i check if my widget has been create? Is table  in oxwall database where i can check created widgets?

(My problem: an easy widget has been created, but  not class found raised in exception :-( )


Thanks in advance,

Regards. 

dave Leader
dave Jun 30 '16
check both tables


ow_base_component_position

ow_base_component_setting

dave Leader
dave Jun 30 '16
also if you are getting a class error then it is an issue with your class name and they way you did it.  Remember class names have their own style with upper and lower case. 
ross Team
ross Jul 11 '16
Topic was moved from General Questions.