if ($mro->getJourneyType() == 'FLIGHT') {
        //        echo 'searchFlights<br>';
        echo 'index controller search flights';
        //var_dump($mro);
        $result = $sc->searchFlights($mro);
        if ($result != null) {
            Template::searchFlightsTemplate($result, $mro);
        }
    } else {
        $dst = $mro->getDestination();
        if (!($dst[0] == null)) {
            //                echo 'searchOffers<br>';
            echo 'index controller search offers';
            $result = $sc->searchOffers($mro);
            if ($result != null) {
                Template::searchOfferTemplate($result, $mro);
            }
        } else {
            //                echo 'searchDestination<br>';
            echo 'index controller search destinations';
            $result = $sc->searchDestination($mro);
            if ($result != null) {
                Template::searchDestinationTemplate($result, $mro);
            }
        }
    }
} catch (Exception $exc) {
    echo '<pre>';
    print_r($exc->getTraceAsString());
    echo '</pre>';
    echo '<pre>';