implements Phalcon\Mvc\Micro\CollectionInterface
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);
Internal function to add a handler to the group
Sets a prefix for all routes added to the collection
Returns the collection prefix if any
Returns the registered handlers
Sets the main handler
Sets if the main handler must be lazy loaded
Returns if the main handler must be lazy loaded
Returns the main handler
Maps a route to a handler
Maps a route to a handler that only matches if the HTTP method is GET
Maps a route to a handler that only matches if the HTTP method is POST
Maps a route to a handler that only matches if the HTTP method is PUT
Maps a route to a handler that only matches if the HTTP method is PATCH
Maps a route to a handler that only matches if the HTTP method is HEAD
Maps a route to a handler that only matches if the HTTP method is DELETE
Maps a route to a handler that only matches if the HTTP method is OPTIONS
© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/latest/api/Phalcon_Mvc_Micro_Collection.html