Ejemplo n.º 1
0
 //$result = $soapClient->searchDestinations(array('mro' => $mro->getParamsAsArray()))->return;
 //
 ////$result = $soapClient->searchDestinations(array('mro' => $mro))->return;
 //
 ////$result = $soapClient->searchDestinations(array('mro' => $mro))->return;
 ////var_dump ($result);;
 //$temp=array();
 //$_GET['destination'] = array($_GET['region'], $_GET['destination']);
 //$mro->setParamsByArray($_GET);
 try {
     //$result =$sc->searchOffers(array('mro' => $mro->getParamsAsArray()))->return;
     //var_dump($result);
     //echo json_encode($result,JSON_PRETTY_PRINT);
     //$dst = $mro->getDestination();
     //var_dump($dst);
     if ($mro->getJourneyType() == 'FLIGHT') {
         //        echo 'searchFlights<br>';
         echo 'index controller search flights';
         $result = $sc->searchFlights($mro);
         //var_dump($result);
         if ($result != null) {
             //	Template::searchFlightsTemplate($result, $mro);
             //	Template::searchFlightsTemplate($result, $mro);
             //	Template::searchFlightsTemplate($result, $mro);
         }
     } else {
         $dst = $mro->getDestination();
         var_dump($dst);
         if (!($dst[0] == null)) {
             //                echo 'searchOffers<br>';
             echo 'index controller search offers';