Hi,

If you look at
https://trac.cakephp.org/browser/branches/1.2.x.x/cake/libs/controller/controller.php#L1096(at
paginate() method's end), you will notice that pagination related
parameters get stored in controller's 'params' property


Amit

http://amitrb.wordpress.com/
http://coppermine-gallery.net/
http://cheesecake-photoblog.org/
http://www.sanisoft.com/blog/author/amitbadkas



On Thu, Apr 30, 2009 at 1:12 PM, tobi_one <tobias.h...@gmail.com> wrote:

>
> Hi,
>
> I see that using the paginator results in a "SELECT COUNT(*)" query
> before retrieving the data.
> I would like to use the result of this query rather than doing another
> findCount on the model again.
>
> How do I access this count data in the controller?
> Or in general - how do I access the paginator data in the controller
> (i.e. not the paginated results, but the other information like number
> of entries, next page, etc.)?
>
> Cheers,
> tobi_one
> >
>

--~--~---------~--~----~------------~-------~--~----~
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