i got this error when i set up hathor template to default using the star
Notice: Undefined property: JAdministrator::$JComponentTitle in /opt/lampp/htdocs/projects/j/j3/administrator/modules/mod_title/mod_title.php on line 13
working with
PHP Version 5.3.8
on linux localhost
Please test gain on present master
administrator/modules/mod_title/mod_title.php Line 13
$title = JFactory::getApplication()->JComponentTitle;
JComponentTitle is not in class JApplication, needs to be changed to:
$title = JFactory::getApplication()->get('JComponentTitle');
OK I was wrong this is not a bug and should be closed, if you are seeing this error it is because you have not defined the title properly when creating the toolbar:
JToolBarHelper::title(JText::_('Your Title'), 'generic');
And because of ordering you have to be sure to add the toolbar before the display in view.html.php:
$this->addToolbar();
parent::display($tpl);
Does anybody knows other cases when this error can occur?
| Title |
|
||||||
| Labels |
Added:
?
|
||||||
| Build | ⇒ | staging | |||||
// Get the component title div
$title = JFactory::getApplication()->JComponentTitle;//this is the line 13