正确的路由 - 帮助 Zend Framework
Proper Routing - Help Zend Framework
我在我的画廊中使用 zend 分页,不幸的是它不适合我。
在图库中使用标签和搜索框时 -> next/another 返回的页面没有 taging/searching
它应该是这样的:
gallery\page\?s=&tag=9
但我有这个:
gallery\page
我该怎么办?
'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',
),
),
),
我在我的画廊中使用 zend 分页,不幸的是它不适合我。
在图库中使用标签和搜索框时 -> next/another 返回的页面没有 taging/searching
它应该是这样的:
gallery\page\?s=&tag=9
但我有这个:
gallery\page
我该怎么办?
'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',
),
),
),