/** * Method to get a reference to the current view and load it if necessary. * * @param string $name The view name. Optional, defaults to the controller name. * @param string $type The view type. Optional. * @param string $prefix The class prefix. Optional. * @param array $config Configuration array for view. Optional. * * @return F0FView Reference to the view or an error. */ public function getView($name = '', $type = '', $prefix = '', $config = array()) { $config['linkbar_style'] = 'classic'; return parent::getView($name, $type, $prefix, $config); }
/** * Overrides the getView method, adding the plugin's layout path */ public function getView($name = '', $type = '', $prefix = '', $config = array()) { $view = parent::getView($name, $type, $prefix, $config); $view->addTemplatePath(JPATH_SITE . '/plugins/j2store/' . $this->_element . '/' . $this->_element . '/tmpl/'); return $view; }