| 12345678910111213141516171819202122232425 |
- <?php
- Core::addScript("/public/js/app-test.js");
- $template = Template::get($id);
- if(!Core::$user->hasPermission($template)) throw new Exception("You do not have permission to access this page.");
- $page_title = $template->name;
- Core::addScript("public/js/app-test.js");
- Core::addBreadcrumb("/account", "Account");
- Core::addBreadcrumb("/account/templates", "Templates");
- Core::addBreadcrumb("/account/templates/$template->id", $page_title);
- if(HTTP::isAJAX()) {
- JSON::success();
- }
- View::includeOnce("header", compact("page_title"));
- View::include("template", compact("template"));
- View::includeOnce("footer");
- ?>
|