locations.php 448 B

1234567891011121314151617
  1. <?php
  2. $page_title = "Locations";
  3. $customer = Customer::getForAdmin();
  4. if(!$customer) throw new Exception("You do not have permission to access this page.");
  5. Core::addBreadcrumb("/account", "Account");
  6. Core::addBreadcrumb("/account/locations", $page_title);
  7. $locations = $customer->getLocations();
  8. View::includeOnce("header", compact("page_title"));
  9. View::include("locations", compact("customer", "locations"));
  10. View::includeOnce("footer");
  11. ?>