L

Bug with my pagination code

  • Thread starter Thread starter Lee
  • Start date Start date
L

Lee

Guest

I am having an issue with my pagination code.

In my template I have:

HTML:
Code:
<xf:pagenav link="mood-tracker" page="{$page}" perpage="{$perPage}" total="{$total}" params="{$filters}"
        wrapperclass="block-outer block-outer--after" />

Route is set like this: :int<mood_id>/:page

Index Controller:

PHP:
Code:
public function actionIndex(ParameterBag $params)
    {
        $visitor = \XF::visitor();
    
        // Fetch filters from the request
        $filters = $this->filter([...

Read more

Continue reading...
 
Similar threads Most view View more
Back
Top Bottom