|
|
@ -70,16 +70,16 @@ class ActionColumn extends Column |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
|
|
|
|
* @param string $action |
|
|
|
* @param \yii\db\ActiveRecord $model |
|
|
|
* @param \yii\db\ActiveRecord $model |
|
|
|
* @param mixed $key the key associated with the data model |
|
|
|
* @param mixed $key the key associated with the data model |
|
|
|
* @param integer $index |
|
|
|
* @param integer $index |
|
|
|
* @param string $action |
|
|
|
|
|
|
|
* @return string |
|
|
|
* @return string |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function createUrl($model, $key, $index, $action) |
|
|
|
public function createUrl($action, $model, $key, $index) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if ($this->urlCreator instanceof Closure) { |
|
|
|
if ($this->urlCreator instanceof Closure) { |
|
|
|
return call_user_func($this->urlCreator, $model, $key, $index, $action); |
|
|
|
return call_user_func($this->urlCreator, $action, $model, $key, $index); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$params = is_array($key) ? $key : ['id' => $key]; |
|
|
|
$params = is_array($key) ? $key : ['id' => $key]; |
|
|
|
$route = $this->controller ? $this->controller . '/' . $action : $action; |
|
|
|
$route = $this->controller ? $this->controller . '/' . $action : $action; |
|
|
|