Adding loadModels() to cached views

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3897 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2006-11-22 17:54:22 +00:00
parent b11e215827
commit 3343368dde

View file

@ -201,6 +201,7 @@ class CacheHelper extends AppHelper {
$cache = convertSlash($this->here) . '.php'; $cache = convertSlash($this->here) . '.php';
$file = '<!--cachetime:' . $cacheTime . '--><?php $file = '<!--cachetime:' . $cacheTime . '--><?php
loadController(\'' . $this->view->name . '\'); loadController(\'' . $this->view->name . '\');
loadModels();
$this->controller = new ' . $this->view->name . 'Controller(); $this->controller = new ' . $this->view->name . 'Controller();
$this->helpers = unserialize(\'' . serialize($this->view->helpers) . '\'); $this->helpers = unserialize(\'' . serialize($this->view->helpers) . '\');
$this->base = \'' . $this->view->base . '\'; $this->base = \'' . $this->view->base . '\';