lithium\template\view\Renderer::__get()
Returns a helper object or context value by name.
Parameters
-
string
$property
The name of the helper or context value to return.
Returns
mixedFilter
This method can be filtered.
Source
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);
}