= Html::a(' 清除缓存', ['/cache/flush-cache'], ['class' => 'btn btn-default', 'data-method' => 'post']) ?>
删除一个缓存
\yii\helpers\Url::to(['flush-cache-key']),
'method' => 'post',
'layout' => 'inline',
'options' => ['class' => 'col-md-9']
])?>
= Html::input('string', 'key', null, ['class'=>'form-control', 'placeholder' => 'key'])?>
= Html::submitButton('删除', ['class'=>'btn btn-danger'])?>