How do I get the ‘default’ param if not specified?
Consider the following:
http://localhost/controller/action/id/123
In my controller, I can get the value of ‘id’ using
$request = $this->getRequest();
$id = $request->getParam('id');
If the URL is
http://localhost/controller/action/456
how do I get the value of 456?
What is the ‘param’ name?
By default ZF URL have to follow pattern:
You should use router. For example in
bootstrap.php: