Latte\Runtime\Template::__get PHP Method

__get() public method

Deprecation:
public __get ( $name )
    public function &__get($name)
    {
        trigger_error("Access to parameters via \$template->{$name} is deprecated, use \$this->getParameter('{$name}')", E_USER_DEPRECATED);
        if (!array_key_exists($name, $this->params)) {
            trigger_error("The variable '{$name}' does not exist in template.");
        }
        return $this->params[$name];
    }