Browse Source

parameter adjustment.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
abdfe30cac
  1. 6
      framework/yii/grid/ActionColumn.php

6
framework/yii/grid/ActionColumn.php

@ -41,7 +41,7 @@ class ActionColumn extends Column
if (!isset($this->buttons['view'])) {
$this->buttons['view'] = function ($model, $key, $index, $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, [
'title' => Yii::t('yii', 'View'),
]);
@ -50,7 +50,7 @@ class ActionColumn extends Column
if (!isset($this->buttons['update'])) {
$this->buttons['update'] = function ($model, $key, $index, $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, [
'title' => Yii::t('yii', 'Update'),
]);
@ -59,7 +59,7 @@ class ActionColumn extends Column
if (!isset($this->buttons['delete'])) {
$this->buttons['delete'] = function ($model, $key, $index, $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, [
'title' => Yii::t('yii', 'Delete'),
'data-confirm' => Yii::t('yii', 'Are you sure to delete this item?'),

Loading…
Cancel
Save