Hi Amit,

many thanks for your hint! Worked great! For reference, the count
after a pagination call in the controller can be accessed with;

$this->params['paging']['Model']['count'];

where "Model" is the name of the model you were paginating.

Cheers,
tobi_one

On 30 Apr., 11:04, Amit Badkas <amitrb...@gmail.com> wrote:
> Hi,
>
> If you look 
> athttps://trac.cakephp.org/browser/branches/1.2.x.x/cake/libs/controlle...
> 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