title: Button in gridview yii2
body: <p>I've create button view profile at gridview. When user click the button view profile, it will go to profile based on user_id. Here is the code.</p>
  
  <pre><code>      &lt;?= GridView::widget([
   'dataProvider' =&gt; $dataProvider,
   'id' =&gt; 'mygrid',
   'columns' =&gt; [
      ['class' =&gt; 'yii\grid\SerialColumn'],
      'user_id',
      'project_name',
      ['class' =&gt; 'yii\grid\ActionColumn'],
      [
          'label' =&gt; 'View Profile',
          'format' =&gt; 'raw',
          'content' =&gt; function($model) {
              return Html::a('View', ['projectstudent/viewprofile', 'id' =&gt;     $model-&gt;user_id],
                  ['class' =&gt; 'btn btn-primary']);
          }
      ],
  ]
   ]); ?&gt;
  </code></pre>
  
  <p>At controller</p>
  
  <pre><code>    public function actionViewprofile($id)
  {
   return $this-&gt;render('profile', [
          'model' =&gt; $this-&gt;findModel($id),
      ]);
  }
  </code></pre>
  
  <p>The requested page is not found. How can i fix the code? Thanks. </p>