autoRoute example

// Still here? Then we can try to match the URI against         // Controllers/directories, but the application may not         // want this, like in the case of API's.         if ($this->collection->shouldAutoRoute()) {
            throw new PageNotFoundException(
                "Can't find a route for '{$this->collection->getHTTPVerb()}: {$uri}'."
            );
        }

        // Checks auto routes         $this->autoRoute($uri);

        return $this->controllerName();
    }

    /** * Returns the filter info for the matched route, if any. * * @return string|null * * @deprecated Use getFilters() */
    
Home | Imprint | This part of the site doesn't use cookies.