コード例 #1
0
ファイル: view.html.php プロジェクト: designbengel/Joomla
 /**
  * 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  "&nbsp;". $booths[$i]. "&nbsp;";
     $this->_prepareDocument();
     parent::display($tpl);
 }