public function frenizsearchAction() { $log = $this->getRequest()->getParams(); $searchModel = new Application_Model_Search($this->registry->DB); if ($log['ccity']) { $id = $log['ccity']; $this->view->placename = $searchModel->placename($id); } elseif ($log['htown']) { $id = $log['htown']; $this->view->placename = $searchModel->placename($id); } }