Friday, September 3, 2010

Re: Ajax Pagination - rearrange pages after item deleting

On Fri, Sep 3, 2010 at 6:35 AM, Mariano C. <mariano.calandra@gmail.com> wrote:
> Yes, this is what I do actually.
> collection() function create my paginated list, after object removing
> I recall collection() function but this display first page of list,
> even if during deleting process I was at page 3.

Create the link in the view so that it will pass the page number (get
it from $this->params['page']) in the AJAX request. Then, adjust the
'page' option when calling paginate().

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: