/** * Display the view */ public function display($tpl = null) { $this->item = $this->get('Item'); $this->state = $this->get('State'); $this->statuses = JHotelReservationHelper::getStatuses(); $this->modes = JHotelReservationHelper::getModes(); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->addToolbar(); parent::display($tpl); }