Error loading module from code. - Joomla! Forum - community, help and support
i amt trying load module in component using code below
jimport( 'joomla.application.module.helper' );
$module = jmodulehelper::getmodule("showplus", "abc");
echo jmodulehelper::rendermodule( $module );
but run error.
notice: trying property of non-object in c:\xampp\htdocs\joomla\libraries\joomla\application\module\helper.php on line 152
notice: trying property of non-object in c:\xampp\htdocs\joomla\libraries\joomla\application\module\helper.php on line 156
notice: trying property of non-object in c:\xampp\htdocs\joomla\libraries\joomla\application\module\helper.php on line 159
strict standards: creating default object empty value in c:\xampp\htdocs\joomla\libraries\joomla\application\module\helper.php on line 159
notice: undefined property: stdclass::$content in c:\xampp\htdocs\joomla\administrator\templates\system\html\modules.php on line 16
i tried adding $module = new stdclass();, takes care of error nothing shows up.
thank reading
jimport( 'joomla.application.module.helper' );
$module = jmodulehelper::getmodule("showplus", "abc");
echo jmodulehelper::rendermodule( $module );
but run error.
notice: trying property of non-object in c:\xampp\htdocs\joomla\libraries\joomla\application\module\helper.php on line 152
notice: trying property of non-object in c:\xampp\htdocs\joomla\libraries\joomla\application\module\helper.php on line 156
notice: trying property of non-object in c:\xampp\htdocs\joomla\libraries\joomla\application\module\helper.php on line 159
strict standards: creating default object empty value in c:\xampp\htdocs\joomla\libraries\joomla\application\module\helper.php on line 159
notice: undefined property: stdclass::$content in c:\xampp\htdocs\joomla\administrator\templates\system\html\modules.php on line 16
i tried adding $module = new stdclass();, takes care of error nothing shows up.
thank reading
Comments
Post a Comment