You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
945 B

  1. <?php
  2. use yii\helpers\Html;
  3. use blobt\grid\GridView;
  4. //use yii\grid\GridView;
  5. /* @var $this yii\web\View */
  6. /* @var $searchModel common\models\CategorySearch */
  7. /* @var $dataProvider yii\data\ActiveDataProvider */
  8. $this->title = 'Categories';
  9. $this->params['breadcrumbs'][] = $this->title;
  10. ?>
  11. <div class="row">
  12. <div class="col-xs-12">
  13. <?= Html::a('test-export','export',['class'=>'btn btn-default'])?>
  14. <?= GridView::widget([
  15. 'dataProvider' => $dataProvider,
  16. 'filter' => $this->render("_search", ['model' => $searchModel]),
  17. 'batch' => [
  18. [
  19. "label" => "删除",
  20. "url" => "/category/deletes"
  21. ],
  22. [
  23. "label" => "其它操作",
  24. "url" => "/category/others"
  25. ],
  26. ],
  27. 'columns' => $columns
  28. ]);
  29. ?>
  30. </div>
  31. </div>