title = '分享'; $this->params['breadcrumbs'][] = $this->title; ?>
= Html::a('创建分享', ['home/index'], ['class' => 'btn btn-success']) ?>
render('_search', ['model' => $searchModel]); ?> = GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\SerialColumn', 'headerOptions' => ['style' => 'width:4%;'], ], [ 'attribute' => 'share_id', 'headerOptions' => ['style' => 'width:6%;'], ], // 'sharer_id', [ 'attribute' => 'file_relative_path', 'headerOptions' => ['style' => 'width:60%;'], ], [ 'attribute' => 'access_code', 'enableSorting' => false, 'headerOptions' => ['style' => 'width:7%;'], ], [ 'attribute' => 'creation_date', 'headerOptions' => ['style' => 'width:15%;'], ], [ 'class' => ActionColumn::className(), 'headerOptions' => ['style' => 'width:8%;'], 'urlCreator' => function ($action, Share $model, $key, $index, $column) { return Url::toRoute([$action, 'share_id' => $model->share_id]); } ], ], ]); ?>