Thanks, it works.

On 15 dec., 22:15, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> In app_controller i add
>
>         function connectNamed($data=null,$exclude=array()) {
>                 if (!isset($data)) {
>                         $data=$this->passedArgs;
>                 }
>                 if (!is_array($data)) return;
>                 foreach ($data as $key => $value) {
>                         if (!is_numeric($key) && !in_array($key,$exclude)) {
>                                 Router::connectNamed(array($key));
>                         }
>                 }
>         }
>
> in controller I use
> $this->connectNamed();
> $this->set('options',$this->passedArgs);
> where $fieldFilter is a list of variables that needn't to pass in
> paginator.
>
> in start of view use something like
> <?php $paginator->options(array('url' => $options));?>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to