public function __get($property)
{
$context = $this->_context;
$helpers = $this->_helpers;
$filter = function ($self, $params, $chain) use($context, $helpers) {
$property = $params['property'];
foreach (array('context', 'helpers') as $key) {
if (isset(${$key}[$property])) {
return ${$key}[$property];
}
}
return $self->helper($property);
};
return $this->_filter(__METHOD__, compact('property'), $filter);
}