Ok, I lost a few a time...to understand how to pass all the params in the paginator, making work good.
I remember in the old version, the paginator was able to remember all, also the params from get... So I have to created this idea that works with all, except the params from get... For example if you have this url http://localhost/cake2/users/all/ok3/page:3/p:8/f:3 you will refind in paginator all the url but with this http://localhost/cake2/users/all/ok3/page:3/p:8/f:3?pizza=p you will lose ?pizza=p YOu can use aniway the $this->params['url'], each argument with key as name... So maybe it is possible complete also this... So here the code : <?$currentUrl = isset($this->params['pass'])?array(implode('/',$this- >params['pass'])):array();?> <? $ArrAll = array_merge ($this->params['named'],$currentUrl); $paginator->options( array('url'=>$ArrAll) ); ?> <?php echo $paginator->prev('<<'/*, array('url' => $currentUrl)*/ ) . " "; ?> <?php echo $paginator->numbers(/*array('url' => $currentUrl)*/) . " ";?> <?php echo $paginator->next('>>'/*, array('url' => $currentUrl)*/); ? > </center> If you need to pass before all, because if you pass after to numbers method, it has a bug.. The array_merge is useful, because the paginator wait your parameters with index numbers for the normal pars, and for named param, you need to give the name as key... Good job. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
