ビューでURLヘルパーを使用してクエリパラメータを再利用しようとしています。これは私の現在のURLです:
http://localhost/events/index?__orderby=name&__order=asc
ビューでこのコードを使用しています:
$this->url('events/index', array('__page' => '2'), true);
このURLを取得したい:
http://localhost/events/index?__orderby=name&__order=asc&__page=2
しかし、代わりに私はこれを取得します:
http://localhost/events/index?controller=Application\Controller\Events&__page=2
これはmodule.config.phpファイル内の私のルートです:
'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',
),
),
),
私は何が間違っているのですか?ご協力いただきありがとうございます。