Zend Router Route Regex with Search params
- by balan-mahadevan
Hi ,
Trying to grab the params after ?. I need them to add to the Zend_Paginator.
ex: http://www.example.com/test/show?name=xxx&age=20&sex=m
Building a paginator for search results.
Is there any solution for that ?
$router = new Zend_Controller_Router_Route_Regex(
'test/show\?(.*)',
array(
'controller' = 'test',
'action' = 'show',
'module' = 'user'
),
array(
1 = 'q'
),
'test/show%s'
);
$router_prev->addRoute('view',$router);