public function getVariable($which)
    {
        if (isset($this->data[$which])) {
            return $this->data[$which];
        } elseif (isset($this->config["data"])) {
            return $this->config["data"][$which];
        }

        return null;
    }
public function getVariable($which)
    {
        if (isset($this->data[$which])) {
            return $this->data[$which];
        } elseif (isset($this->config["data"])) {
            return $this->config["data"][$which];
        }

        return null;
    }
public function getVariable ( $ which ) { if ( isset ( $ this -> data [ $ which ] ) ) { return $ this -> data [ $ which ] ; } elseif ( isset ( $ this -> config [ "data" ] ) ) { return $ this -> config [ "data" ] [ $ which ] ; } return null ; }
Get a value of a variable which will be exposed to the template files
during render.

@param string $which variable to get value of.

@return mixed as value of variable, or null if value is not set.
Get a value of a variable which will be exposed to the template files during render .