Making CacheHelper create $this->Html style helper references.

This commit is contained in:
Mark Story 2009-12-28 21:58:56 -05:00
parent 6749e1166b
commit 2db479dc90

View file

@ -256,6 +256,7 @@ class CacheHelper extends AppHelper {
$camelBackedHelper = Inflector::variable($helper); $camelBackedHelper = Inflector::variable($helper);
${$camelBackedHelper} =& $loadedHelpers[$helper]; ${$camelBackedHelper} =& $loadedHelpers[$helper];
$this->loaded[$camelBackedHelper] =& ${$camelBackedHelper}; $this->loaded[$camelBackedHelper] =& ${$camelBackedHelper};
$this->{$helper} =& $loadedHelpers[$helper];
} }
?>'; ?>';
$content = preg_replace("/(<\\?xml)/", "<?php echo '$1';?>",$content); $content = preg_replace("/(<\\?xml)/", "<?php echo '$1';?>",$content);