Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Parameters for find_all()
  • I wanted to paginate the results for find_all but the documentation doesn't tell what can be the parameters of find_all() / i just can't find it. I already tried this but didn't work:
    find_all($where=null,'id asc',Pagination::$per_page,Pagination::$offset);
    
  • To which "find_all" method are you referring? ORM? Model_Crud? Something else?
  • I didn't know, but i later on found out it was ORM and it's actually in the docs xD Finally i came up with this code:
    find('all',array(
           'limit' => Pagination::$per_page,
           'offset' => Pagination::$offset)
           );
    

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion