public function ajaxdisplayAction() { $this->_helper->layout()->disableLayout(); $repairs = new Vehicle_Models_RepairMapper(); $repId = $this->_getParam('id',0); if($repId >0) { $repair = new Vehicle_Models_Repair(); $repairs->findRepairJoin($repId,$repair); $this ->view->repair = $repair; } else { $this->_redirect('/vehicle/repair'); } }