title: how to add button to yii gridview not the actionColumn a seperate column
body: <p>goodday house please am trying to add an extra column "status" with buttons on each row to yii gridview not under the ActionColumn but a seperate column and also i am trying to pass values into the button, so that the button will display text from my database..
  i have tried all have seen is to add it to the ActionColumn please i need ur help</p>
  
  <p>i tried doing something like this but it isnt workin
       // 'Date',</p>
  
  <pre><code>[
      'class' =&gt; '',
      'template' =&gt; '{status}',
      'buttons' =&gt; [
          'status' =&gt; function ($url) {
            foreach ($reg_course as $reg) {
              return Html::a(
              '&lt;button class="btn btn-info"&gt;&lt;?= $reg-&gt;student_status?&gt;&lt;/button&gt;',
              $url, 
              [
                  'title' =&gt; 'Status',
                  'data-pjax' =&gt; '0',
              ]
          );
            }
  
         },
      ],
    ],
  
    ['class' =&gt; 'yii\grid\ActionColumn'],
  ],
  </code></pre>