Zend Router Route Regex with Search params
Posted
by balan-mahadevan
on Stack Overflow
See other posts from Stack Overflow
or by balan-mahadevan
Published on 2010-05-05T20:04:24Z
Indexed on
2010/05/05
20:08 UTC
Read the original article
Hit count: 492
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);
© Stack Overflow or respective owner