SetViewTitle(); $layoutName = vRequest::getCmd('layout', 'default'); if ($layoutName == 'edit') { $this->country = $model->getData(); $this->wzsList = $zoneModel->getWorldZonesSelectList(); $this->addStandardEditViewCommands(); } else { $this->addStandardDefaultViewCommands(true,false); //First the view lists, it sets the state of the model $this->addStandardDefaultViewLists($model,0,'ASC'); $filter_country = vRequest::getCmd('filter_country', false); $this->countries = $model->getCountries(false, false, $filter_country); $this->pagination = $model->getPagination(); } parent::display($tpl); } } // pure php no closing tag