Here is my route:
$router->addGet("/rest/:controller/{id}", array(
"controller" => 1,
"action" => "read"
));
and here is my action:
public function readAction(){
$this->view->disable();
echo $this->dispatcher->getParam('id');
}
When is go to rest/test/1
url it returns test
instead of 1
. Is it a bug?