public setActionSuffix (mixed $actionSuffix) Changes the action method suffix
integer POSITION_LAST
integer POSITION_FIRST
public processControllerAnnotation (mixed $handler, Phalcon\Annotations\Annotation $annotation) Checks for annotations in the controller docblock
public processActionAnnotation (mixed $module, mixed $namespaceName, mixed $controller, mixed $action, Phalcon\Annotations\Annotation $annotation) Checks for annotations in the public methods of the controller
public setControllerSuffix (mixed $controllerSuffix) Changes the controller class suffix
public getResources () Return the registered resources
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
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; }
public addResource (mixed $handler, [mixed $prefix]) Adds a resource to the annotations handler A resource is a class that contains routing annotations
Page 81 of 382