/** * Display the view * */ public function display($tpl = null) { require_once JPATH_PLUGINS . '/system/nnframework/helpers/parameters.php'; $this->parameters = nnParameters::getInstance(); $this->enabled = SnippetsHelper::isEnabled(); $this->list = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->state = $this->get('State'); $this->config = $this->parameters->getComponentParams('snippets'); $this->filterForm = $this->get('FilterForm'); $this->activeFilters = $this->get('ActiveFilters'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->addToolbar(); parent::display($tpl); }