public function __construct($config = array()) { parent::__construct($config); $base_path = JPATH_COMPONENT_ADMINISTRATOR . '/plugins'; $model_path = $base_path . '/models'; $view_path = $base_path . '/views'; $this->addModelPath($model_path); $this->addViewPath($view_path); }
public function __construct($config = array()) { $base_path = JPATH_ADMINISTRATOR . '/components/com_akeeba/plugins'; $model_path = $base_path . '/models'; $view_path = $base_path . '/views'; $config['model_path'] = $model_path; $config['modelName'] = 'AkeebaModelStatistics'; parent::__construct($config); $this->addViewPath($view_path); }
public function __construct($config = array()) { parent::__construct($config); $option = $this->input->get('option', 'com_foobar', 'cmd'); $base_path = JPATH_ADMINISTRATOR . '/components/' . $option . '/plugins'; $model_path = $base_path . '/models'; $view_path = $base_path . '/views'; $this->addModelPath($model_path); $this->addViewPath($view_path); $this->setThisModelName('AkeebaModelStatistics'); }
public function __construct($config = array()) { parent::__construct($config); $this->modelName = 'AkeebaModelConfwiz'; }
/** * Overridden constructor; lets us inject a different session * * @param array $config */ public function __construct($config = array()) { $this->session = isset($config['session']) ? $config['session'] : JFactory::getSession(); parent::__construct($config); }