Mvc\Router\Route::getGroup

public getGroup () Returns the group associated with the route

Mvc\Router\Route::getConverters

public getConverters () Returns the router converter

Mvc\Router\Route::getCompiledPattern

public getCompiledPattern () Returns the route’s compiled pattern

Mvc\Router\Route::getBeforeMatch

public getBeforeMatch () Returns the ‘before match’ callback if any

Mvc\Router\Route::extractNamedParams

public extractNamedParams (mixed $pattern) Extracts parameters from a string

Mvc\Router\Route::convert

public convert (mixed $name, mixed $converter) Adds a converter to perform an additional transformation for certain parameter

Mvc\Router\Route::compilePattern

public compilePattern (mixed $pattern) Replaces placeholders from pattern returning a valid PCRE regular expression

Mvc\Router\Route::beforeMatch

public beforeMatch (mixed $callback) Sets a callback that is called if the route is matched. The developer can implement any arbitrary conditions here If the callback returns false the route is treated as not matched $router->add('/login', array( 'module' => 'admin', 'controller' => 'session' ))->beforeMatch(function ($uri, $route) { // Check if the request was made with Ajax if ($_SERVER['HTTP_X_REQUESTED_WITH'] == 'xmlhttprequest') { return false; } re

Mvc\Router\Route

implements Phalcon\Mvc\Router\RouteInterface Source on GitHub This class represents every route added to the router Methods public __construct (mixed $pattern, [mixed $paths], [mixed $httpMethods]) Phalcon\Mvc\Router\Route constructor public compilePattern (mixed $pattern) Replaces placeholders from pattern returning a valid PCRE regular expression public via (mixed $httpMethods) Set one or more HTTP methods that constraint the matching of the route $route->via('GET'); $route->via(array(

Mvc\Router\GroupInterface::setPrefix

abstract public setPrefix (mixed $prefix) ...