Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Multiple Pagination Per Page
  • I have a question regarding using multiple sections of pagination on a single page. My reasoning for this is that I am using a tabbed interface (http://cl.ly/Hz9d). Is there a way to call the page_links method for a specific pagination configuration? In example, all articles vs most popular articles? Thank you!
  • Sorry for the late reply, for some reason the reply notification was in my spam box. I have already set up two different configs, however, when I echo Pagination::create_links() for the second time, it generates the links for the first config. How do I tell the create links function to echo the links for the second config instead of the first? Thanks for your help Harro. You've helped me numerous times in the past. EDIT: I was echoing create_links in the view, instead of the ViewModel, so it was getting the wrong links. Instead, I passed the links from the function to the view. Sorry, noob mistake. Thanks for your help, Harro!
  • You can pass a custom config using set_config(): http://docs.fuelphp.com/classes/pagination.html#/method_set_config So, set a config, generate your links, set a different config, generate the second set of links.

Howdy, Stranger!

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

In this Discussion