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

Reply via email to