public match (mixed $callback) Allows to set a callback to handle the request directly in the route $router->add("/help", array())->match(function () { return $this->getResponse()->redirect('https://support.google.com/', true); });
public static getRoutePaths ([mixed $paths]) Returns routePaths
public getRouteId () Returns the route’s id
public getReversedPaths () Returns the paths using positions as keys and names as values
public getPattern () Returns the route’s pattern
public getPaths () Returns the paths
public getName () Returns the route’s name
public getMatch () Returns the ‘match’ callback if any
public getHttpMethods () Returns the HTTP methods that constraint matching the route
public getHostname () Returns the hostname restriction if any
Page 75 of 382