private static function handleRequestNotFound () {
        $response = get_response();
        $response->clear();
        $response->statusCode(Response::HTTP_NOT_FOUND);
        $notFoundRoutes = self::$notFoundRoutes->getRoutes();
        if (!empty($notFoundRoutes)) {
            foreach ($notFoundRoutes as $notFoundRoute) {
                $routeResult = self::executeAction($notFoundRoute->getAction(), array_merge($_REQUEST, $notFoundRoute->getParameters()));
                if (isset($routeResult)) {
                    $response->content($routeResult);
                }
            }
            $response->send();
        }
        else {
            handle_error_code(Response::HTTP_NOT_FOUND);
        }
    }
private static function handleRequestNotFound () {
        $response = get_response();
        $response->clear();
        $response->statusCode(Response::HTTP_NOT_FOUND);
        $notFoundRoutes = self::$notFoundRoutes->getRoutes();
        if (!empty($notFoundRoutes)) {
            foreach ($notFoundRoutes as $notFoundRoute) {
                $routeResult = self::executeAction($notFoundRoute->getAction(), array_merge($_REQUEST, $notFoundRoute->getParameters()));
                if (isset($routeResult)) {
                    $response->content($routeResult);
                }
            }
            $response->send();
        }
        else {
            handle_error_code(Response::HTTP_NOT_FOUND);
        }
    }
private static function handleRequestNotFound ( ) { $ response = get_response ( ) ; $ response -> clear ( ) ; $ response -> statusCode ( Response :: HTTP_NOT_FOUND ) ; $ notFoundRoutes = self :: $ notFoundRoutes -> getRoutes ( ) ; if ( ! empty ( $ notFoundRoutes ) ) { foreach ( $ notFoundRoutes as $ notFoundRoute ) { $ routeResult = self :: executeAction ( $ notFoundRoute -> getAction ( ) , array_merge ( $ _REQUEST , $ notFoundRoute -> getParameters ( ) ) ) ; if ( isset ( $ routeResult ) ) { $ response -> content ( $ routeResult ) ; } } $ response -> send ( ) ; } else { handle_error_code ( Response :: HTTP_NOT_FOUND ) ; } }
Procesa una ruta no encontrada
@throws Exception
Procesa una ruta no encontrada