public function display($tpl = null) { $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->state = $this->get('State'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->addToolbar(); parent::display($tpl); }
public function display($tpl = null) { $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->state = $this->get('State'); $this->arrSliders = $this->get("ArrSliders"); $this->sliderID = $this->get("SliderID"); $this->linkSliderSettings = HelperUniteHCar::getViewUrl_Slider($this->sliderID); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->addToolbar(); parent::display($tpl); }
/** * the main disply function */ public function display($tpl = null) { // Initialiase variables. $this->form = $this->get('Form'); $this->item = $this->get('Item'); $this->state = $this->get('State'); $this->isNew = $this->item->id == 0; if ($this->_layout == "default" || $this->_layout == "edit") { if ($this->isNew == false) { $this->linkEditSlides = HelperUniteHCar::getViewUrl_Items($this->item->id); } } // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->addToolbar(); parent::display($tpl); }
/** * display function * */ public function display($tpl = null) { // Initialiase variables. $this->form = $this->get('Form'); $this->item = $this->get('Item'); $this->state = $this->get('State'); if (!empty($this->item->id)) { $this->isEmpty = false; } $arrParams = $this->item->get("params"); $this->params = new JRegistry(); $this->params->loadArray($arrParams); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->setImage(); $this->addToolbar(); parent::display($tpl); }