|
|
@ -142,8 +142,9 @@ class Controller extends Component |
|
|
|
if ($actionID === '') { |
|
|
|
if ($actionID === '') { |
|
|
|
$actionID = $this->defaultAction; |
|
|
|
$actionID = $this->defaultAction; |
|
|
|
} |
|
|
|
} |
|
|
|
if (isset($this->actionMap[$actionID])) { |
|
|
|
$actions = $this->actions(); |
|
|
|
return \Yii::createObject($this->actionMap[$actionID], $actionID, $this); |
|
|
|
if (isset($actions[$actionID])) { |
|
|
|
|
|
|
|
return \Yii::createObject($actions[$actionID], $actionID, $this); |
|
|
|
} elseif (method_exists($this, 'action' . $actionID)) { |
|
|
|
} elseif (method_exists($this, 'action' . $actionID)) { |
|
|
|
return new InlineAction($actionID, $this); |
|
|
|
return new InlineAction($actionID, $this); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|