Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function executeIndex(sfWebRequest $request)
- {
- $postcode = $this->getRequestParameter("postcode", "LS98BX");
- $locationTable = Doctrine_Core::getTable("location");
- $outletTable = Doctrine_Core::getTable("outlet");
- if ($location = $locationTable->findOrCreateByPostcode($postcode))
- {
- $this->outlets = $outletTable->findWithinKmOfLocationQuery($location, 200)->execute();
- }
- $this->page = $this->getRoute()->getObject();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement