The Dispatcher class is responsible for mapping urls/routes to Controller methods.
Each route that has the same number of directory components as the current requested url is tried, and the first method that returns a response with a non false/non null value will be returned via the Dispatcher::dispatch() method.
For example:
A route string can be a literal uri such as '/pages/about' or can contain wildcards (:any or :num) and/or regex like '/blog/:num' or '/page/:any'.
Visiting /about/ would call PageController::about(), visiting /blog/5 would call BlogController::post(5) visiting /blog/5/comment/42/delete would call BlogController::deleteComment(5,42)
The dispatcher is used by calling Dispatcher::addRoute() to setup the route(s), and Dispatcher::dispatch() to handle the current request and get a response.
Located in /wolf/Framework.php (line 99)
Adds a route.
Handles the request for a URL and provides a response.
Executes a specified action for a specified controller class.
Returns the action that was requested from a controller.
Returns a reference to a controller class.
Returns the currently requested URL.
Returns an array of parameters that should be passed to an action.
???
Checks if a route exists for a specified URI.
Splits a URL into an array of its components.
Documentation generated on Thu, 12 May 2011 23:23:55 +0200 by phpDocumentor 1.4.3