public setDefaultController (mixed $controllerName) Sets the default controller name
public setDefaultAction (mixed $actionName) Sets the default action name
public removeExtraSlashes (mixed $remove) Set whether router must remove the extra slashes in the handled routes
integer POSITION_LAST
integer POSITION_FIRST
public notFound (mixed $paths) Set a group of paths to be returned when none of the defined routes are matched
public mount (Phalcon\Mvc\Router\GroupInterface $group) Mounts a group of routes in the router
public isExactControllerName () Returns whether controller name should not be mangled
public handle ([mixed $uri]) Handles routing information received from the rewrite engine // Read the info from the rewrite engine $router->handle(); // Manually passing an URL $router->handle('/posts/edit/1');
public getRoutes () Returns all the routes defined in the router
Page 86 of 382