implements Phalcon\Mvc\Micro\CollectionInterface
Source on GitHub
Groups Micro-Mvc handlers as controllers
$app = new \Phalcon\Mvc\Micro();
$collection = new Collection();
$collection->setHandler(new PostsController());
$collection->get('/posts/edit/{id}', 'edit');
$app->mount($collection);
Methods
protected _addMap (string | array $method, string $routePattern, mixed $handler, string $name)
Internal function to add a handler to the group
public setPrefix (mixed $prefix)
Sets