[Solar-talk] limit in select
Rodrigo Moraes
rodrigo.moraes at gmail.com
Wed Jul 26 07:56:27 PDT 2006
On 7/26/06, Jeff Surgeson wrote:
> There is a limit() function in Solar_Sql_Select, but how do I use it in
> conjunction with a select or fetchAll call?
>
> $this->list = $this->bd_news->fetchAll($where, $order, $page)->limit($limit) ?
I guess $bd_news extends Sql_Table? If yes, I think you only need to
set a limit for it before fetchAll():
$this->bd_news->setPaging($limit);
More information about the solar-talk
mailing list