src/View/AbstractView.php
public function get($variable, $htmlEncode = true)
    {
        $value = null;

        if ( isset($this->variables[$variable]) ) {
            $value = $this->variables[$variable][$htmlEncode ? 'safe' : 'unsafe'];
        }

        return $value;
    }
public function get($variable, $htmlEncode = true)
    {
        $value = null;

        if ( isset($this->variables[$variable]) ) {
            $value = $this->variables[$variable][$htmlEncode ? 'safe' : 'unsafe'];
        }

        return $value;
    }
public function get ( $ variable , $ htmlEncode = true ) { $ value = null ; if ( isset ( $ this -> variables [ $ variable ] ) ) { $ value = $ this -> variables [ $ variable ] [ $ htmlEncode ? 'safe' : 'unsafe' ] ; } return $ value ; }
Get a view variable

@param string $variable
@param bool $htmlEncode
@return mixed|null
Get a view variable