Exemple #1
0
 /**
  * Prepare hook of this component.
  *
  * Do some customize initialise through extending this method.
  *
  * @return void
  */
 public function prepare()
 {
     parent::prepare();
     // Prevent JToolbarHelper bug
     include_once JPATH_ADMINISTRATOR . '/includes/toolbar.php';
     // Load admin language
     $lang = JFactory::getLanguage();
     $lang->load('', JPATH_ADMINISTRATOR);
     // Load css
     $asset = $this->container->get('helper.asset');
     $asset->addCss('userxtd-component.css')->addCss('main.css');
 }
Exemple #2
0
 /**
  * Prepare hook of this component.
  *
  * Do some customize initialise through extending this method.
  *
  * @return void
  */
 public function prepare()
 {
     parent::prepare();
 }