diff --git a/src/Core/View/ViewEngine.php b/src/Core/View/ViewEngine.php index dd29a58..4c1ffe8 100644 --- a/src/Core/View/ViewEngine.php +++ b/src/Core/View/ViewEngine.php @@ -312,13 +312,17 @@ private function skeleton_body() : string ob_start(); + // TODO: Find a way to render more than 1.5mb of HTML page if(empty($matches['html_content'])) { $length = LayFn::num_format(strlen($body), 6) . "B"; Exception::throw_exception( "It seems the html_content of the page is empty. Maybe you are rendering a page that is very large. Body Size: $length", - "ViewEngine::PageTooLarge" + "ViewEngine::PageTooLarge", + false ); + + $matches['html_content'] = ["