public function ajaxBuscarParticipanteAction() { if (!$this->autenticacao(true)) { return; } $sessao = Zend_Auth::getInstance()->getIdentity(); $cache = Zend_Registry::get('cache_common'); $ps = $cache->load('prefsis'); $id_encontro = (int) $ps->encontro["id_encontro"]; $id_pessoa = $sessao["idPessoa"]; $termo = $this->_request->getParam("termo", ""); try { $model_participante = new Application_Model_Participante(); $rs = $model_participante->buscarParticipantePorEmail($termo, $id_pessoa, $id_encontro); $this->view->size = count($rs); $this->view->results = $rs; } catch (Zend_Db_Exception $e) { $this->view->error = _('Error on fetching results.'); } }