routes.php
$router->notFound(
array(
"controller" => "index",
"action" => "error"
)
);
IndexController.php
public function errorAction($code = '404')
{
$this->response->setStatusCode(404, 'Not Found');
}
When i try to access for ex: /test
:
TestController handler class cannot be loaded
Why router notFound
method doesnt working?