From d933d6bd73bf650c8cccf8bbc4ac2f3e532b537b Mon Sep 17 00:00:00 2001 From: Juan Basso Date: Sun, 23 Jan 2011 20:51:56 -0200 Subject: [PATCH] Assigning the helper object in view class, avoiding to use __get magic for each call. --- cake/libs/view/view.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cake/libs/view/view.php b/cake/libs/view/view.php index 7ff7ed9fa..35a886fbc 100644 --- a/cake/libs/view/view.php +++ b/cake/libs/view/view.php @@ -624,7 +624,8 @@ class View extends Object { public function loadHelpers() { $helpers = HelperCollection::normalizeObjectArray($this->helpers); foreach ($helpers as $name => $properties) { - $this->Helpers->load($properties['class'], $properties['settings']); + list($plugin, $class) = pluginSplit($properties['class']); + $this->{$class} = $this->Helpers->load($properties['class'], $properties['settings']); } $this->_helpersLoaded = true; }