I am trying to reuse query parameters using the Url helper in the view. This is my current url:
http:
I use this code in a view:
$this->url('events/index', array('__page' => '2'), true);
I want to get this URL:
http:
But instead, I get the following:
http:
This is my route inside the module.config.php file:
'events' => array( 'type' => 'segment', 'options' => array( 'route' => '/eventos[/:action]', 'constraints' => array( 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', ), 'defaults' => array( 'controller' => 'Application\Controller\Events', 'action' => 'index', ), ), 'may_terminate' => true, 'child_routes' => array( 'index' => array( 'type' => 'Query', ), ), ),
What am I doing wrong? Thank you for your help.
source share