title: Yii2 - How to format the footer in my GridView?
body: <p>This is the code my GridView. I would like the footer to have the same format with its column. How do I do it? Thanks!</p>
  
  <pre><code>echo GridView::widget([
  'dataProvider' =&gt; $dataProvider,
  'showFooter' =&gt; true,
  'formatter' =&gt; ['class' =&gt; 'yii\i18n\Formatter','thousandSeparator' =&gt; ',','currencyCode' =&gt; 'PHP',],
          'columns' =&gt; [
          ['class' =&gt; 'yii\grid\SerialColumn'],
  
          [
          'attribute' =&gt;'account_code',
          'footer' =&gt;'Total',
          ],
          'account_name',
          [
          'attribute' =&gt;'amount',
          'format' =&gt; 'currency',
          'footer' =&gt; Accounts::getTotal($dataProvider-&gt;models, 'amount'),
          ],
  
          ['class' =&gt; 'yii\grid\ActionColumn'],
          ],
  </code></pre>
  
  <p>]);</p>
  
  <p><a href="https://i.stack.imgur.com/nxULO.jpg" rel="nofollow noreferrer">Picture of the table.</a></p>