title: Call to undefined function setSurroundCount() CodeIgniter 4
body: <p>I'm trying to implement a pagination in my view but when I call the setSurroundCount function it gives me an error "Call to undefined method CodeIgniter\Pager\Pager:ConfusedetSurroundCount() "
  Does someone knows why ?</p>
  
  <p>Here is my controller :</p>
  
  <pre><code>function index($limit=100) {
  
      $model = new \App\Models\TransactionModel();
  
      $data = [
          'title' =&gt; "Transactions",
          'transactionsHTMLTable' =&gt; $this-&gt;formatTransactionsAsHTMLTable($model-&gt;paginate($limit)),
          'pager' =&gt; $model-&gt;pager
      ];
  
      echo view('top', $data);
      echo view('transactions', $data);
      echo view('bottom');
  } 
  </code></pre>
  
  <p>Here is my view ;</p>
  
  <pre><code>&lt;h3&gt;Transactions&lt;/h3&gt;
  &lt;?php
      echo $transactionsHTMLTable;
      // echo $pager-&gt;links();
      $pager-&gt;setSurroundCount(2);
  ?&gt;
  
  &lt;nav aria-label="Page navigation"&gt;
      &lt;ul class="pagination"&gt;
      &lt;?php if ($pager-&gt;hasPrevious()) : ?&gt;
          &lt;li&gt;
              &lt;a href="&lt;?= $pager-&gt;getFirst() ?&gt;" aria-label="First"&gt;
                  &lt;span aria-hidden="true"&gt;First&lt;/span&gt;
              &lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;
              &lt;a href="&lt;?= $pager-&gt;getPrevious() ?&gt;" aria-label="Previous"&gt;
                  &lt;span aria-hidden="true"&gt;&amp;laquo;&lt;/span&gt;
              &lt;/a&gt;
          &lt;/li&gt;
      &lt;?php endif ?&gt;
  
      &lt;?php foreach ($pager-&gt;links() as $link) : ?&gt;
          &lt;li &lt;?= $link['active'] ? 'class="active"' : '' ?&gt;&gt;
              &lt;a href="&lt;?= $link['uri'] ?&gt;"&gt;
                  &lt;?= $link['title'] ?&gt;
              &lt;/a&gt;
          &lt;/li&gt;
      &lt;?php endforeach ?&gt;
  
      &lt;?php if ($pager-&gt;hasNext()) : ?&gt;
          &lt;li&gt;
              &lt;a href="&lt;?= $pager-&gt;getNext() ?&gt;" aria-label="Previous"&gt;
                  &lt;span aria-hidden="true"&gt;&amp;raquo;&lt;/span&gt;
              &lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;
              &lt;a href="&lt;?= $pager-&gt;getLast() ?&gt;" aria-label="Last"&gt;
                  &lt;span aria-hidden="true"&gt;Last&lt;/span&gt;
              &lt;/a&gt;
          &lt;/li&gt;
      &lt;?php endif ?&gt;
      &lt;/ul&gt;
  &lt;/nav&gt; 
  </code></pre>
  
  <p>Here is the function formatTransactionsAsHTMLTable() :</p>
  
  <pre><code>function formatTransactionsAsHTMLTable($transactions) {
      $htmlTable = array();
  
      $table = new \CodeIgniter\View\Table();
  
      $template = [
          'table_open' =&gt; '&lt;table class="table table-striped table-hover table-sm small"&gt;'
      ];
  
      $table-&gt;setTemplate($template);
  
      $table-&gt;setHeading('ID', 'Date', 'Subscription ID', 'Duration', 'Price', 'Proceed', 'Device', 'Country', 'Subscriber ID');
  
      foreach ($transactions as $key =&gt; $transaction) {
          $table-&gt;addRow($transaction['id'], $transaction['date'], $transaction['subscriptionId'], $transaction['duration'], $transaction['price'] . " " . $transaction['currency'], $transaction['proceed'] . " " . $transaction['proceedCurrency'], $transaction['device'], $transaction['country'], $transaction['subscriberId']);
      }
  
      return $table-&gt;generate();
  }
  </code></pre>
  
  <p>I took everything from the Codeigniter 4 documentation.</p>
  
  <p>If I echo $pager->links() it works. So the $pager is here but the functions setSurroundCount getFirst, getNext, ... doesn't work.
  Can someone help me ?</p>