Maybe to complex:
Has anyone used custom url in pagination (v1.2) before?

On Sep 3, 1:19 pm, Charlie van de Kerkhof <[EMAIL PROTECTED]>
wrote:
> Hi all,
>
> I'm fiddling with the paginate Helper in the latest svn version of
> 1.2. It is not working when I have setup special routes.
> The Html->link works with url array's and compares them with the
> routes and makes the appropriate link. But with the paginator I can't
> get that working.
>
> In my view template I have:
>
> <?php
> $paginator->options['url'] = array(
>                                         'controller'   => 'tickers',
>                                         'action'       => 'list',
>                                         'mbentity'     => 'artists',
>                                         'letter'       => $letter,
>                                         'language'     => $language
>                                     );
> echo $paginator->prev('<< '._t('previous'), array(), null,
> array('class'=>'disabled'));
> php echo $paginator->numbers();
> php echo $paginator->next(_t('next').' >>', array(), null,
> array('class'=>'disabled'));
>
> ?>
>
> and in my routes.php:
> <?php
> Router::connect('/:language/:mbentity/list/:letter/*',
>                     array('controller'=>'tickers','action' =>
> 'getListByLetter'),
>                     array('language'=>'[a-zA-Z]{2}'));
> ?>
>
> But still it makes the url like this:
> domain.com/tickers/list
> instead of:
> domain.com/en/tickers/list/F/page:2/step:1
>
> Anyone how to tweak this? Or is the paginator with routes still in
> progress?
>
> Thnx!
> - Charlie


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to