Commit abdfe30c by Qiang Xue

parameter adjustment.

parent bae5cda5
...@@ -41,7 +41,7 @@ class ActionColumn extends Column ...@@ -41,7 +41,7 @@ class ActionColumn extends Column
if (!isset($this->buttons['view'])) { if (!isset($this->buttons['view'])) {
$this->buttons['view'] = function ($model, $key, $index, $column) { $this->buttons['view'] = function ($model, $key, $index, $column) {
/** @var ActionColumn $column */ /** @var ActionColumn $column */
$url = $column->createUrl($model, $key, $index, 'view'); $url = $column->createUrl('view', $model, $key, $index);
return Html::a('<span class="glyphicon glyphicon-eye-open"></span>', $url, [ return Html::a('<span class="glyphicon glyphicon-eye-open"></span>', $url, [
'title' => Yii::t('yii', 'View'), 'title' => Yii::t('yii', 'View'),
]); ]);
...@@ -50,7 +50,7 @@ class ActionColumn extends Column ...@@ -50,7 +50,7 @@ class ActionColumn extends Column
if (!isset($this->buttons['update'])) { if (!isset($this->buttons['update'])) {
$this->buttons['update'] = function ($model, $key, $index, $column) { $this->buttons['update'] = function ($model, $key, $index, $column) {
/** @var ActionColumn $column */ /** @var ActionColumn $column */
$url = $column->createUrl($model, $key, $index, 'update'); $url = $column->createUrl('update', $model, $key, $index);
return Html::a('<span class="glyphicon glyphicon-pencil"></span>', $url, [ return Html::a('<span class="glyphicon glyphicon-pencil"></span>', $url, [
'title' => Yii::t('yii', 'Update'), 'title' => Yii::t('yii', 'Update'),
]); ]);
...@@ -59,7 +59,7 @@ class ActionColumn extends Column ...@@ -59,7 +59,7 @@ class ActionColumn extends Column
if (!isset($this->buttons['delete'])) { if (!isset($this->buttons['delete'])) {
$this->buttons['delete'] = function ($model, $key, $index, $column) { $this->buttons['delete'] = function ($model, $key, $index, $column) {
/** @var ActionColumn $column */ /** @var ActionColumn $column */
$url = $column->createUrl($model, $key, $index, 'delete'); $url = $column->createUrl('delete', $model, $key, $index);
return Html::a('<span class="glyphicon glyphicon-trash"></span>', $url, [ return Html::a('<span class="glyphicon glyphicon-trash"></span>', $url, [
'title' => Yii::t('yii', 'Delete'), 'title' => Yii::t('yii', 'Delete'),
'data-confirm' => Yii::t('yii', 'Are you sure to delete this item?'), 'data-confirm' => Yii::t('yii', 'Are you sure to delete this item?'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment