Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Integrating the FUelPHP Pagination CLass
  • First of all, I'm new to frameworks. Now i used the oil 'command line' to generate the controllers, models, views, and added sample contents to test it.
    php oil g scaffold statuses content:text category_id:string
    php oil r migrate
    

    Now I inserted a couple of dummy contents into the database, and I wanted to paginate it using the FuelPHP Pagination Class. But the problem is, how do I integrate it (Where to insert the codes)? Here's my current controller.
  • Pagination has to go into your action_index, and will replace the find('all'). The docs give you a good example of how it works: http://docs.fuelphp.com/classes/pagination.html

Howdy, Stranger!

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

In this Discussion