Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Error in Pagination Documentation
  • Hello everyone!

    I found an error in pagination documentation.

    http://www.fuelphp.com/docs/classes/pagination.html

    Section: How to paginate with ORM
    Error:
    $data['example_data'] = Model_Post::query()
             ->rows_offset($pagination->per_page)
             ->rows_limit($pagination->offset)
             ->get();

    Correct:
    $data['example_data'] = Model_Post::query()
             ->rows_offset($pagination->offset)
             ->rows_limit($pagination->per_page)
             ->get();

    The values are reversed.

    Thanks a lot.
  • When you have cases like this, always check http://www.fuelphp.com/dev-docs/classes/pagination.html to see if the error has already been corrected.

    In this case, it is, release docs will be updated with the next release, 1.7.2. due any day.

Howdy, Stranger!

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

In this Discussion