mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Making View pass request onto helpers and extract it from a Controller.
This commit is contained in:
parent
e6a743b163
commit
4520ff7c82
1 changed files with 2 additions and 2 deletions
|
@ -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++) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue