public function __get($attribute) { $matches = array(); if (preg_match('/^(.+)_helper$/', $attribute, $matches)) { $this->getHelperLoader()->instantiateHelperAsHandlerAttribute($matches[1], $matches[0]); if (isset($this->{$attribute})) { return $this->{$attribute}; } } if (!isset($this->_dynamic_attributes[$attribute])) { return parent::__get($attribute); } return $this->_dynamic_attributes[$attribute]; }