We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Micro Collection of Routes with handler not matched.

Basically what I'm trying to do is the following

use \Phalcon\Mvc\Micro\Collection as MicroCollection;

$app = new \Phalcon\Mvc\Micro();

$collection = new MicroCollection();

$collection->setHandler(new BrandsController());

$collection->setPrefix('api/brands');

$collection->get('','actionIndex');

$collection->post('/search','actionSearch');

$collection->get('/{id:[0-9]+}','resourceGet');

$collection->put('/{id:[0-9]+}','resourcePut');

$collection->delete('/{id:[0-9]+}','resourceDelete');

$app->mount($collection);

No route is matched.



98.9k

Could you please post the URI/URL that is not being matched?