Dispatcher: Why beforeException not fired if route not found?

If the route is not found, then phalcon uses default controller. So the only way to detect route not found error is to do smth like this: ```php $router->setDefaultController('SomeNonExistController'); ```



83.4k

I was thinking in adding a special route to the router to be used when none of the configured routes are matched. Somewhat like:

$router->fallback(array(
    'controller' => 'index',
    'action' => 'notFound' 
));


12.6k

This is also my concern.