yii2 delete record error
<p>i getting error while deleting record in all table:<p></p>

<pre><code>An Error occurred while handling another error:
exception 'yii\web\ForbiddenHttpException' with message 'You are not allowed to perform this action.' in D:\FORBIDDEN\projects\UniServerZ\www\project\vendor\yiisoft\yii2\filters\AccessControl.php:151
Stack trace:
</code></pre>

<p><p></p>

<pre><code>Previous exception:
exception 'yii\web\MethodNotAllowedHttpException' with message 'Method Not Allowed. This url can only handle the following request methods: POST.' in D:\FORBIDDEN\projects\UniServerZ\www\project\vendor\yiisoft\yii2\filters\VerbFilter.php:105
Stack trace:
</code></pre>

<p>_<p>
here my controller:
<br></p>

<pre><code>public function behaviors()
    {
        return [
            'verbs' =&gt; [
                'class' =&gt; VerbFilter::className(),
                'actions' =&gt; [
                    'delete' =&gt; ['POST'],
                ],
            ],
        ];
    }
</code></pre>

<p><br></p>

<pre><code>public function actionDelete($id)
{
   $this-&gt;findModel($id)-&gt;delete();
   return $this-&gt;redirect(['index']);
}
</code></pre>

<p><p>
and my delete button in view.php</p>

<pre><code>&lt;?= Html::a('Delete', ['delete', 'id' =&gt; $model-&gt;id_transaksi], [
            'class' =&gt; 'btn btn-danger',
            'data' =&gt; [
                'confirm' =&gt; 'Are you sure you want to delete this item?',
                'method' =&gt; 'post',
            ],
        ]) 
?&gt;
</code></pre>

<p><br>
its working when i replaced POST with GET, but alert confirm not working..
do you know what's wrong? help, please</p>