public function classificationAction() { $class = new table_Classification(); $this->view->sectors = $class->getSector($this->_selectedSector); $this->view->subsectors = $class->getSubsector($this->_selectedSector, $this->_selectedSubsector); $this->view->segments = $class->getSegment($this->_selectedSector, $this->_selectedSubsector, $this->_selectedSegment); $companies = new table_Companies(); $this->view->companies = $companies->getCompanies(); if ($this->_selectedSubsector == null && $this->_selectedSegment == null) { $this->view->showCompanies = false; } else { $this->view->showCompanies = true; } }