index.php 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. use yii\helpers\Url;
  3. use yii\helpers\Html;
  4. use yii\bootstrap\ActiveForm;
  5. /** @var \yii\web\View $this */
  6. $this->title = "清除缓存";
  7. ?>
  8. <div class="box box-success">
  9. <div class="box-body">
  10. <div class="row">
  11. <div class="col-md-6 text-center">
  12. <?= Html::a('<i class="glyphicon glyphicon-flash"></i> 清除缓存', ['/cache/flush-cache'], ['class' => 'btn btn-default', 'data-method' => 'post']) ?>
  13. </div>
  14. <div class="col-md-6">
  15. <h5 class="col-md-3">删除一个缓存</h5>
  16. <?php ActiveForm::begin([
  17. 'action' => \yii\helpers\Url::to(['flush-cache-key']),
  18. 'method' => 'post',
  19. 'layout' => 'inline',
  20. 'options' => ['class' => 'col-md-9']
  21. ])?>
  22. <?= Html::input('string', 'key', null, ['class'=>'form-control', 'placeholder' => 'key'])?>
  23. <?= Html::submitButton('删除', ['class'=>'btn btn-danger'])?>
  24. <?php ActiveForm::end()?>
  25. </div>
  26. </div>
  27. </div>
  28. </div>