findPK(1); $qq = new CityQuery; $city = $qq->findPK($area->getCityId()); printf("%s in %s\n", $area->getName(), $city->getName()); } function button($text, $link) { $safe = htmlspecialchars($text); echo "$safe\n"; } echo "

\n"; button("Orders", "/order"); button("Donations", "/donation"); echo "

\n"; echo "

\n"; button("Contacts", "/contact"); button("Hubs", "/hub"); button("Areas", "/area"); echo "

\n"; echo "

\n"; button("Cities", "/city"); echo "

\n"; ?>