title: Delete is not working Method Not Allowed (#405) gridview yii2
body: <p>This is my gridview, I changed from class <code>actionColumn</code> to this:</p>
  
  <pre><code>[   'format' =&gt; 'html',
              'contentOptions'=&gt;['style'=&gt;'width: 5px;'],
              'value' =&gt; function($model) {
                  if($model-&gt;id == Yii::$app-&gt;user-&gt;identity-&gt;id) {
                      return  Html::a('&lt;i class="glyphicon glyphicon-share-alt"&gt;&lt;/i&gt;').' '. 
                              Html::a('&lt;i class="glyphicon glyphicon-pencil"&gt;&lt;/i&gt;', ['update', 'id' =&gt; $model-&gt;id]).' '.
                              Html::a('&lt;i class="glyphicon glyphicon-trash"&gt;&lt;/i&gt;', ['delete', 'id' =&gt; $model-&gt;id], ['data' =&gt; ['confirm' =&gt; 'Do you really want to delete this element?','method' =&gt; 'post']]);
                  }
                  return '';
              },
          ],
  </code></pre>
  
  <p>Which gives me an error.</p>
  
  <pre><code>Method Not Allowed (#405)
  
  Method Not Allowed. This url can only handle the following request methods: POST. 
  </code></pre>
  
  <p>When I changed to <code>actionColumn</code> again it was working, but I changed the code and it just gives me an error.</p>