aboutsummaryrefslogtreecommitdiffstats
path: root/App.php
diff options
context:
space:
mode:
Diffstat (limited to 'App.php')
-rw-r--r--App.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/App.php b/App.php
index 442ca8c..89dda01 100644
--- a/App.php
+++ b/App.php
@@ -25,6 +25,8 @@ class App
$controller = "user";
}
+ ob_start();
+
// Dispatch correct controller
$c = new $controller;
@@ -45,7 +47,9 @@ class App
return $c->$action($c);
}
- exit(App::error("{$controller}_{$action}: no such method"));
+ App::error("{$controller}_{$action}: no such method");
+
+ ob_end_flush();
}