public function consultarMenCorrtempJSONAction()
 {
     $MensajeCoDao = new MensajeCorreTempDao($this->getDoctrine());
     $MensajeCorreT = $MensajeCoDao->getMensaTem();
     $numfilas = count($MensajeCorreT);
     $uni = new MensajeCorreTemp();
     $i = 0;
     foreach ($MensajeCorreT as $uni) {
         $rows[$i]['id'] = $uni->getMencortemCodigo();
         $rows[$i]['cell'] = array($uni->getMencortemCodigo(), $uni->getMencortemNombre(), $uni->getMencortemTexto());
         $i++;
     }
     $datos = json_encode($rows);
     $jsonresponse = '{
            "page":"1",
            "total":"1",
            "records":"' . $numfilas . '", 
            "rows":' . $datos . '}';
     $response = new Response($jsonresponse);
     return $response;
 }