Cleaner error handling
This commit is contained in:
parent
43804eebad
commit
aba0243fd2
2 changed files with 116 additions and 118 deletions
|
@ -30,6 +30,8 @@ $container['view'] = function ($c) {
|
|||
|
||||
$controller = new FrontController();
|
||||
|
||||
$container['errorHandler'] = array($controller, 'error');
|
||||
|
||||
$app->get(
|
||||
'/',
|
||||
array($controller, 'index')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue