Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  1.   public function executeIndex(sfWebRequest $request)
  2.   {
  3.     $postcode       = $this->getRequestParameter("postcode", "LS98BX");
  4.  
  5.     $locationTable  = Doctrine_Core::getTable("location");
  6.     $outletTable    = Doctrine_Core::getTable("outlet");
  7.  
  8.     if ($location = $locationTable->findOrCreateByPostcode($postcode))
  9.     {
  10.       $this->outlets = $outletTable->findWithinKmOfLocationQuery($location, 200)->execute();
  11.     }
  12.     $this->page = $this->getRoute()->getObject();
  13.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement