title: Yii2 custom pagination view
body: <p><strong>Hello everybody. 
  I need to do a custom pagination for the GridView.</strong>
  In GridView I used:</p>
  
  <pre><code>'pager' =&gt; [
          'prevPageLabel' =&gt; '&lt;div style="border: none" class="glyphicon glyphicon-menu-left"&gt;&lt;/div&gt;',
          'nextPageLabel' =&gt; '&lt;div style="border: none" class="glyphicon glyphicon-menu-right"&gt;&lt;/div&gt;',
          'maxButtonCount' =&gt; 0,
  ]
  </code></pre>
  
  <p>As a result, I get two arrows and then I can style them: </p>
  
  <p><img src="https://i.stack.imgur.com/N0aFb.png" alt="enter image description here"></p>
  
  <p><strong>Question: How to put your own content between these arrows?</strong>
  <br><br>
  For example, I can get count of page: <code>&lt;?= $dataProvider-&gt;totalCount; ?&gt;</code> and I want to put this total count of pages between the arrows of pagination. <strong>How can I do this?</strong><br>Thanks!</p>