index.ctp:
$paginator->options(array('url' => $this->passedArgs));

On Jul 23, 5:42 pm, K3 <[email protected]> wrote:
> i have added param to the baked index method (to use it as a filter)
> so the URL becomes /products/index/id, but now paginate doesnt include
> this param in the links it creates for sorting table columns. Anyone
> can tell me how can i add it?
>
> her eis the method:
>         function admin_index($id) {
>                 $this->Product->recursive = 0;
>                 $this->set('products', $this->paginate
> (null,"Product.product_category_id=$id"));
>         }
>
> but links are:
> /products/index/page:0/sort:title/direction:asc
> instead of:
> /products/index/id/page:0/sort:title/direction:asc
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to