Try:
Router::connect('/dashboard/watching/*', array('controller' =>
'watching', 'action' => 'index'));
Notice the final /*. For pagination links several args have to be
appended to the URL, so it doesn't match "/dashboard/watching" anymore.
Chrs,
Dav
On 11 Nov 2008, at 15:26, benko wrote:
>
> Firstly, the reverse routing feature of CakePHP is fantastic!
>
> Has anyone noticed that reverse routing doesnt seem to work for
> pagination links, or perhaps I am doing something wrong?
>
> I have the following route set up:
>
> Router::connect('/dashboard/watching', array('controller' =>
> 'watching', 'action' => 'index'));
>
> The links work fine
>
> echo $html->link('test', array('controller' => 'watching', 'action' =>
> 'index')); // displays /dashboard/watching
>
> But id like to have the same effect for the pagination links
>
> echo $paginator->next(' Next >', array('url' => array('controller' =>
> 'watching', 'action' => 'index')), null, array('class' =>
> 'disabled'));
>
> Although this doesn't seem to work...
>
> Thanks in advance :)
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---