public function getguestAction() { $reponse = new Reponse(); $this->disableLayout(); $tel = $this->getParam('tel'); $guest = Object\Guest::getByTel($tel, 1); if ($guest instanceof Object\Guest) { $data = $guest->toArray(); if ($data) { $reponse->message = 'TXT_GUEST_LIST'; $reponse->success = true; $reponse->data = $data; $reponse->debug = $this->getParam("q"); } else { $reponse->message = 'TXT_NO_GUEST'; $reponse->success = false; $reponse->data = $data; } } else { $reponse->message = 'TXT_NO_GUEST'; $reponse->success = false; $reponse->data = $data; } $this->render($reponse); }