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"); ?>