/** * Constructor * * @param array $config A named configuration array for object construction. */ public function __construct($config = array()) { parent::__construct($config); // Load language manually $lang = JFactory::getLanguage(); $lang->load('jsn_installer', JPATH_COMPONENT_ADMINISTRATOR . '/libraries/joomlashine/installer'); // Get input object $this->input = JFactory::getApplication()->input; // Get model object $this->model = $this->getModel(); // Get document object $this->doc = JFactory::getDocument(); }
/** * Constructor * * @param array $config A named configuration array for object construction. */ public function __construct($config = array()) { // Display only the component output JFactory::getApplication()->input->def('tmpl', 'component'); parent::__construct($config); }