I have a simple defined route like this.
$router->add(
"/api/:controller/:action/:params",
array(
'module' => "api",
"controller" => 1,
"action" => 2,
"id" => 3,
)
);
Using this function - print_r($this->dispatcher->getParams());
- /api/cont/act/3 - Works
- /api/cont/act/ - Works
- /api/cont/act - makes the id = 3 which is not acceptable.
I'm just starting witth thi and I just wanted to know whats up with it ;)