예제 #1
0
        $options['checkout'] = isset($_REQUEST['checkout']) ? $_REQUEST['checkout'] : null;
    }
    $options['city'] = isset($_GET['city']) ? $_GET['city'] : null;
    $properties = $connector->getProperties($options);
} catch (Exception $e) {
    switch ($e->getCode()) {
        case 401:
            print "Forbidden access <br/>\n";
            break;
        default:
            print "Error";
    }
}
$cities = array();
try {
    $cities = $connector->getCities();
} catch (Exception $e) {
    switch ($e->getCode()) {
        case 401:
            print "Forbidden access <br/>\n";
            break;
        default:
            print "Error";
    }
}
?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>N2Rent | Connector example</title>