public function __construct() { $this->loadToolbar = false; // Call the parent constructor parent::__construct(); // Load bootstrap YireoHelper::bootstrap(); // Initialize the toolbar if (file_exists(JPATH_COMPONENT . '/config.xml')) { if (JFactory::getUser()->authorise('core.admin')) { JToolBarHelper::preferences($this->_option, 600, 800); } } // Add the checks $this->runChecks(); }