Making View pass request onto helpers and extract it from a Controller.

This commit is contained in:
mark_story 2010-05-15 00:52:06 -04:00
parent e6a743b163
commit 4520ff7c82

View file

@ -278,7 +278,7 @@ class View extends Object {
private $__passedVars = array( private $__passedVars = array(
'viewVars', 'action', 'autoLayout', 'autoRender', 'ext', 'base', 'webroot', 'viewVars', 'action', 'autoLayout', 'autoRender', 'ext', 'base', 'webroot',
'helpers', 'here', 'layout', 'name', 'layoutPath', 'viewPath', 'helpers', 'here', 'layout', 'name', 'layoutPath', 'viewPath',
'params', 'data', 'plugin', 'passedArgs', 'cacheAction' 'params', 'request', 'data', 'plugin', 'passedArgs', 'cacheAction'
); );
/** /**
@ -784,7 +784,7 @@ class View extends Object {
} }
} }
$loaded[$helper] =& new $helperCn($options); $loaded[$helper] =& new $helperCn($options);
$vars = array('base', 'webroot', 'here', 'params', 'action', 'data', 'theme', 'plugin'); $vars = array('base', 'webroot', 'here', 'request', 'params', 'action', 'data', 'theme', 'plugin');
$c = count($vars); $c = count($vars);
for ($j = 0; $j < $c; $j++) { for ($j = 0; $j < $c; $j++) {