Skip to content
Permalink
Browse files

Adding 'action' into View::__get() to make an integration test pass.

  • Loading branch information...
markstory committed Sep 11, 2010
1 parent a521291 commit 634cea24ebfe3e59d060e38cf1dc2d2fe34d95e1
Showing with 5 additions and 1 deletion.
  1. +5 −1 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 @@ public function __get($name) {
if (isset($this->Helpers->{$name})) {
return $this->Helpers->{$name};
}
switch ($name) {
case 'action':
return $this->request->params['action'];
}
return null;
}

0 comments on commit 634cea2

Please sign in to comment.
You can’t perform that action at this time.