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'], 'share_id', // 'sharer_id', 'file_relative_path', 'access_code', 'creation_date', [ 'class' => ActionColumn::className(), 'urlCreator' => function ($action, Share $model, $key, $index, $column) { return Url::toRoute([$action, 'share_id' => $model->share_id]); } ], ], ]); ?>