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:
phpnut 2007-03-04 04:43:30 +00:00
parent 91c821ae6c
commit f05ab47e94

View file

@ -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. '\';