mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Adding fix for Ticket #1442.
Controller components are now initialized in cached views git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4571 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
91c821ae6c
commit
f05ab47e94
1 changed files with 1 additions and 0 deletions
|
@ -228,6 +228,7 @@ class CacheHelper extends AppHelper {
|
|||
';
|
||||
}
|
||||
$file .= '$this->controller = new ' . $this->controllerName . 'Controller();
|
||||
$this->controller->_initComponents();
|
||||
$this->helpers = unserialize(\'' . serialize($this->helpers) . '\');
|
||||
$this->base = \'' . $this->base . '\';
|
||||
$this->layout = \'' . $this->layout. '\';
|
||||
|
|
Loading…
Reference in a new issue