Hi all,
I have a route:
<?php
$config['routes'] = [
'/organization/(:int)/' => [ 'controller'=> 'organization',
'action' => 'index',
'page' => 1
]
]
that isn't being matched. Or rather it is being matched but the parameter isn't being passed to the action.
My action looks like this:
public function indexAction($page = 4){
echo $page;
exit();
For a URL like .../organization/2/
, $page
should have a value of 2, but instead its 4. If I use:
var_dump($this->dispatcher->getParam('page'));
it shows NULL. What do I have to change to get the $page
properly passed?