From 113473f2560aab6d364c301cc14a8b5ba8f309f4 Mon Sep 17 00:00:00 2001 From: slawkens Date: Sat, 3 May 2025 22:04:08 +0200 Subject: [PATCH] Add optional param _page_only for single-page apps etc. --- system/router.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system/router.php b/system/router.php index e0bcc04f..b87a843d 100644 --- a/system/router.php +++ b/system/router.php @@ -317,6 +317,11 @@ $content .= ob_get_contents(); ob_end_clean(); $hooks->trigger(HOOK_AFTER_PAGE); +if (isset($_REQUEST['_page_only'])) { + echo $content; + die; +} + if(!isset($title)) { $title = str_replace('index.php/', '', $page); $title = ucfirst($title);