On Thu, Sep 2, 2010 at 8:53 PM, Michael Gaiser <mjgai...@gmail.com> wrote:
> With a little poking around I think I have found the true issue here. When
> you click on a paginate link, it appends 'page:2' or whatever page it is
> going to to your url and then internally uses the previously saved query to
> get the next set of records. But 'page:2' is not passed in as an argument or
> at least I am not able to capture it to test if a paginate query is being
> performed or if this is the first time I am loading the page and nothing has
> been asked for yet. So my question is this. How do I know if a paginate
> query is being performed as opposed to the page loading for the first time.

debug($this->params);

You should see:

Array
(
    [pass] => Array
        (
        )

    [named] => Array
        (
            [page] => 2
        )

etc.

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