| 1234567891011121314151617181920 |
- <?php
- Core::addBreadcrumb("/account", "Account");
- Core::addBreadcrumb("/account/locations", "Locations");
- $customer = Customer::getForAdmin();
- if(!$customer) throw new Exception("You do not have permission to access this page.");
- $page_title = "$customer->name Locations";
- Core::addBreadcrumb("/account/locations?customer_id=$customer->id", $page_title);
- $locations = $customer->getLocations();
- View::includeOnce("header", compact("page_title"));
- View::include("locations", compact("customer", "locations"));
- View::includeOnce("footer");
- ?>
|