I need to paginate.
On Thu, May 26, 2011 at 5:48 PM, euromark <[email protected]>wrote:
> in this case dont use pagination
> a simple find('all') will do the trick
>
>
> On 26 Mai, 16:18, Alejandro Gómez Fernández <[email protected]> wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > You want to limit the number of rows the database engine send to cake?
> > This limit must be set in the "select" command, so, may be, it must be
> > set in the model. Do you try this?
> >
> > Regards,
> >
> > Alejandro.
> >
> > El 26/05/2011 10:11, Okalany Daniel escribi :
> >
> > > Hi All,
> > > i can't seem to be able to limit the number of records returned from
> cakephp
> > > pagination.
> >
> > > $this->paginate('limit'=>30);
> > > limits the number of results per page. But i want to limit the total
> dataset
> > > returned. Set it to like 300 since i have a very large table.
> >
> > > regards,
> > > Daniel
> >
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.11 (MingW32)
> > Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/
> >
> > iQEcBAEBAgAGBQJN3mE/AAoJEHQn9CmeN9DJ3wYH/37cOKjIvWUTuJKkgLrPikNQ
> > ZmBmqbdwdksI03FIYTJsh6Q7Ozw8m3/bJx0rUYO0qPvNs2QfyJpzJLSDsZl+ljf2
> > Zb6P/vEe4Y8nS8r7zGjavRAzuCbWzJeoPSRNGcsBw2ZnnAGCAUqwSMxElvFl3TC7
> > NsNVSiei/tpeuOFrLmZPyGk8/MQqHW+t+4aJDuSoVahsNHR/2WH+9YM9E9NmjdPB
> > eqdsrOXrUux7Wbs8EUbJkoh+GRaJGlhOuGd61oDInoSXwuRxOGN2vqap9b7lfaJq
> > wlGmCFGx+RiRJ8fT40J2+oVc8Rles/yyFvA0l73ZJksqRfpw0M3GsFnBsK0ME4o=
> > =e1Am
> > -----END PGP SIGNATURE-----
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>
--
OKALANY DANIEL,
P.O BOX 26150,
Kampala.,
Uganda.
http://okasoft.net
--
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php