Hi... I'm new in phalcon and try to make a simple api using phalcon micro and micro collection. I'm try to make a route which can be access through POST and GET method. this is a piece of code i'm using
$myMicroCollectionObj = new \Phalcon\Mvc\Micro\Collection();
$myMicroCollectionObj->setHandler("\Controllers\TestController",true);
$testMicro->setPrefix("/test");
$myMicroCollectionObj->map("/actionpostget","actionpostget")->via(['POST','GET']);
and i get this error message :
Uncaught Error: Call to undefined method Phalcon\Mvc\Micro\Collection::via()
Thanks