mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
include theme in _passedVars array
This commit is contained in:
parent
4f1be12046
commit
95aa7e32c3
1 changed files with 2 additions and 5 deletions
|
@ -157,7 +157,7 @@ class View extends Object {
|
|||
public $subDir = null;
|
||||
|
||||
/**
|
||||
* Theme name. If you are using themes, you should remember to use ThemeView as well.
|
||||
* Theme name.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
|
@ -217,7 +217,7 @@ class View extends Object {
|
|||
* @var array
|
||||
*/
|
||||
protected $_passedVars = array(
|
||||
'viewVars', 'autoLayout', 'ext', 'helpers', 'view', 'layout', 'name',
|
||||
'viewVars', 'autoLayout', 'ext', 'helpers', 'view', 'layout', 'name', 'theme',
|
||||
'layoutPath', 'viewPath', 'request', 'plugin', 'passedArgs', 'cacheAction'
|
||||
);
|
||||
|
||||
|
@ -305,9 +305,6 @@ class View extends Object {
|
|||
$this->{$var} = $controller->{$var};
|
||||
}
|
||||
$this->_eventManager = $controller->getEventManager();
|
||||
if (!empty($controller->theme)) {
|
||||
$this->theme = $controller->theme;
|
||||
}
|
||||
}
|
||||
$this->Helpers = new HelperCollection($this);
|
||||
$this->Blocks = new ViewBlock();
|
||||
|
|
Loading…
Add table
Reference in a new issue