Hi guys
I have a view "event" and it has a extra action button which redirects to "checkin/index" page
here is my gridview
<?= GridView::widget([
'id'=>'event-table',
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
'title',
'location',
[
'class' => 'yii\grid\ActionColumn',
'template' => '{checkin/index} {view} {update} {delete} ',
'contentOptions' => ['class'=>'action-td'],
'buttons' => [
'checkin/index' => function ($url,$model) {
return Html::a('<div id="notification-container"><span data-pjax=false class="glyphicon glyphicon-user"></span>'.EventSearch::showCheckin($model->id) .'</div>', $url,['data-pjax' => true]);
},
]
],
]
]);
When use clicks on that button it will open a "checkin/index" page
so i want to send the "title" of the row on which the button was clicked so that
on the "checkin/index" page i can use that title as $this->title
is there any way to pass data on action button click
here is my "checkin/index" code
public function actionIndex()
{
$searchModel = new CheckinSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
}