/** * Display the view */ public function display($tpl = null) { $app = JFactory::getApplication(); $this->state = $this->get('State'); $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->params = $app->getParams('com_floorplan'); // Check for errors. if (count($errors = $this->get('Errors'))) { throw new Exception(implode("\n", $errors)); } $floorplan = array(); $this->floorplan = FloorplanHelper::BuildFloorplan($this->params, $this->items); // for ($i = 1; $i <= count($booths); $i++) echo " ". $booths[$i]. " "; $this->_prepareDocument(); parent::display($tpl); }