lithium\template\view\Renderer::__get()

public method

Returns a helper object or context value by name.

Parameters

  • string $property

    The name of the helper or context value to return.

Returns

mixed

Filter

This method can be filtered.

Source

	public function __get($property) {
		return Filters::run($this, __FUNCTION__, compact('property'), function($params) {
			$property = $params['property'];

			foreach (['context', 'helpers'] as $key) {
				if (isset($this->{"_{$key}"}[$property])) {
					return $this->{"_{$key}"}[$property];
				}
			}
			return $this->helper($property);
		});
	}