Skip to content

Commit

Permalink
Adding 'action' into View::__get() to make an integration test pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Sep 14, 2010
1 parent a521291 commit 634cea2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cake/libs/view/view.php
Expand Up @@ -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'
);
Expand Down Expand Up @@ -653,6 +653,10 @@ public function __get($name) {
if (isset($this->Helpers->{$name})) {
return $this->Helpers->{$name};
}
switch ($name) {
case 'action':
return $this->request->params['action'];
}
return null;
}

Expand Down

0 comments on commit 634cea2

Please sign in to comment.