Do you have merge in the view your url params with the PaginatorHelper ?

Something like this ?
$paginator->options('url'=>array_merge(array('lang'=>$lang),
$this->passedArgs));

On Mon, 2009-11-30 at 01:22 -0800, Mono wrote:
> Somehow the url's for my paginations looks like:
> 
> .../articles/page:2/page:2
> .../articles/page:3/page:3
> ....
> 
> After I click on next page, they looks like:
> 
> .../articles/page:2/page:2/page:2
> .../articles/page:3/page:3/page:3
> ....
> 
> 
> My controller:
> 
>       function articles ($id = null)
>       {
>               $this->paginate['Article'] = array
>               (
>                       'conditions' => array ('Article.id' => $id),
>                       'contain' => array
>                       (
>                               'Tag',
>                               'User' => array
>                               (
>                                       'fields' => array ('id', 
> 'use_status_id', 'firstname',
> 'lastname', 'avatar'),
>                                       'UseStatus'
>                               )
>                       ),
>                       'order' => array ('Article.created DESC'),
>                       'limit' => 10,
>                       'page' => 1
>               );
> 
>               $this->set ('results', $this->paginate ('Article'));
>       }
> 
> 
> The view:
> 
> ....
> ....
> <?=$paginator->numbers ()?>
> 
> How can I fix it? I'm using CakePHP 1.2.5
> 
> 
> Thank a lot for any hint!
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
> 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en


Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to