diff --git a/cake/libs/view/view.php b/cake/libs/view/view.php index be32b3a20..741d6d461 100644 --- a/cake/libs/view/view.php +++ b/cake/libs/view/view.php @@ -276,7 +276,7 @@ class View extends Object { * @access protected */ private $__passedVars = array( - 'viewVars', 'action', 'autoLayout', 'autoRender', 'ext', 'base', 'webroot', + 'viewVars', 'autoLayout', 'autoRender', 'ext', 'base', 'webroot', 'helpers', 'here', 'layout', 'name', 'layoutPath', 'viewPath', 'params', 'request', 'data', 'plugin', 'passedArgs', 'cacheAction' ); @@ -653,6 +653,10 @@ class View extends Object { if (isset($this->Helpers->{$name})) { return $this->Helpers->{$name}; } + switch ($name) { + case 'action': + return $this->request->params['action']; + } return null; }