Mvc\Router\Annotations::setActionSuffix

public setActionSuffix (mixed $actionSuffix) Changes the action method suffix

Mvc\Router\Annotations::POSITION_LAST

integer POSITION_LAST

Mvc\Router\Annotations::POSITION_FIRST

integer POSITION_FIRST

Mvc\Router\Annotations::processControllerAnnotation

public processControllerAnnotation (mixed $handler, Phalcon\Annotations\Annotation $annotation) Checks for annotations in the controller docblock

Mvc\Router\Annotations::processActionAnnotation

public processActionAnnotation (mixed $module, mixed $namespaceName, mixed $controller, mixed $action, Phalcon\Annotations\Annotation $annotation) Checks for annotations in the public methods of the controller

Mvc\Router\Annotations::setControllerSuffix

public setControllerSuffix (mixed $controllerSuffix) Changes the controller class suffix

Mvc\Router\Annotations::getResources

public getResources () Return the registered resources

Mvc\Router\Annotations::addModuleResource

public addModuleResource (mixed $module, mixed $handler, [mixed $prefix]) Adds a resource to the annotations handler A resource is a class that contains routing annotations The class is located in a module

Mvc\Router\Annotations

extends class Phalcon\Mvc\Router implements Phalcon\Events\EventsAwareInterface, Phalcon\Mvc\RouterInterface, Phalcon\Di\InjectionAwareInterface Source on GitHub A router that reads routes annotations from classes/resources $di['router'] = function() { //Use the annotations router $router = new Annotations(false); //This will do the same as above but only if the handled uri starts with /robots $router->addResource('Robots', '/robots'); return $router; }

Mvc\Router\Annotations::addResource

public addResource (mixed $handler, [mixed $prefix]) Adds a resource to the annotations handler A resource is a class that contains routing annotations