Mvc\RouterInterface

Source on GitHub Methods abstract public setDefaultModule (mixed $moduleName) ... abstract public setDefaultController (mixed $controllerName) ... abstract public setDefaultAction (mixed $actionName) ... abstract public setDefaults (array $defaults) ... abstract public handle ([mixed $uri]) ... abstract public add (mixed $pattern, [mixed $paths], [mixed $httpMethods]) ... abstract public addGet (mixed $pattern, [mixed $paths]) ... abstract public addPost (mixed $pattern, [mixed $paths]) ... abs

Mvc\Router::wasMatched

public wasMatched () Checks if the router matches any of the defined routes

Mvc\Router::URI_SOURCE_SERVER_REQUEST_URI

integer URI_SOURCE_SERVER_REQUEST_URI

Mvc\Router::URI_SOURCE_GET_URL

integer URI_SOURCE_GET_URL

Mvc\Router::setUriSource

public setUriSource (mixed $uriSource) Sets the URI source. One of the URI_SOURCE_* constants $router->setUriSource(Router::URI_SOURCE_SERVER_REQUEST_URI);

Mvc\Router::setEventsManager

public setEventsManager (Phalcon\Events\ManagerInterface $eventsManager) Sets the events manager

Mvc\Router::setDI

public setDI (Phalcon\DiInterface $dependencyInjector) Sets the dependency injector

Mvc\Router::setDefaults

public setDefaults (array $defaults) Sets an array of default paths. If a route is missing a path the router will use the defined here This method must not be used to set a 404 route $router->setDefaults([ 'module' => 'common', 'action' => 'index' ]);

Mvc\Router::setDefaultNamespace

public setDefaultNamespace (mixed $namespaceName) Sets the name of the default namespace

Mvc\Router::setDefaultModule

public setDefaultModule (mixed $moduleName) Sets the name of the default module