Hi,
Managed to get it to work by changing route type:
$route = new Zend_Controller_Router_Route(
':topicName/list/:page',
array(
'page' => 1,
'controller' => 'item',
'action' => 'list'
),
array('topicName' =>
'(news|sports|movies|music|television|technology|showbiz)')
);
$router->addRoute('multipleItem', $route);
Thanks
On 10 June 2010 11:11, Daniel Latter <[email protected]> wrote:
> Hi All,
>
> I am using a Zend_Controller_Router_Route_Regex like so:
>
> '(news|sports|movies|music|television|technology|showbiz)/list',
>
> What do I need to add to the regex above so it I can also pick up
> pagination values for use
> with Zend_Paginator?
>
> I have tried:
> '(news|sports|movies|music|television|technology|showbiz)/list/*',
> '(news|sports|movies|music|television|technology|showbiz)/list/page/(\d+)',
>
> I am using the url helper to make the url in my pagination view script so
> do I need to pass the named route into
> the url helper also?
>
> Heres my full route:
> $route = new Zend_Controller_Router_Route_Regex(
>
> '(news|sports|movies|music|television|technology|showbiz)/list',
> array(
> 'controller' => 'item',
> 'action' => 'list'
> ),
> array(
> 1 => 'topicName'
> )
> );
> $router->addRoute('multipleItem', $route);
>
> Thanks a lot guys.
> Dan
>
>
>
>
>