Php 正确的路由-帮助Zend框架
我在我的图库中使用zend分页,不幸的是,它不适合我 在gallery->next/中使用标记和搜索框时,将返回另一页,但不进行标记/搜索 应该是这样的:Php 正确的路由-帮助Zend框架,php,zend-framework,routing,zend-framework2,Php,Zend Framework,Routing,Zend Framework2,我在我的图库中使用zend分页,不幸的是,它不适合我 在gallery->next/中使用标记和搜索框时,将返回另一页,但不进行标记/搜索 应该是这样的: gallery\page\2\?s=&tag=9 但我有一个: gallery\page\2 我能做些什么 'gallery' => array( 'type' => 'Segment', 'options' => array( 'route' => '/ge
gallery\page\2\?s=&tag=9
但我有一个:
gallery\page\2
我能做些什么
'gallery' => array(
'type' => 'Segment',
'options' => array(
'route' => '/generator_nowy/gallery[/page/:page/]',
'defaults' => array(
'controller' => 'Men\Controller\FrontController',
'action' => 'gallery',
'page' => 1,
)
),
'may_terminate' => true
),
试一试
'gallery' => array(
'type' => 'Segment',
'options' => array(
'route' => '/generator_nowy/gallery[/page/:page/]',
'defaults' => array(
'controller' => 'Men\Controller\FrontController',
'action' => 'gallery',
'page' => 1,
)
),
'may_terminate' => true,
'child_routes' => array(
'query' => array(
'type' => 'Query',
),
),
),