Phrozn/Site/View/Base.php
public function getParam($param, $default = null)
    {
        try {
            $this->parse();
            $value = $this->getParams($param, null);
        } catch (\Exception $e) {
            // skip error on file read problems, just return default value
        }
        if (isset($value)) {
            return $value;
        } else {
            return $default;
        }
    }
public function getParam($param, $default = null)
    {
        try {
            $this->parse();
            $value = $this->getParams($param, null);
        } catch (\Exception $e) {
            // skip error on file read problems, just return default value
        }
        if (isset($value)) {
            return $value;
        } else {
            return $default;
        }
    }
public function getParam ( $ param , $ default = null ) { try { $ this -> parse ( ) ; $ value = $ this -> getParams ( $ param , null ) ; } catch ( \ Exception $ e ) { // skip error on file read problems, just return default value } if ( isset ( $ value ) ) { return $ value ; } else { return $ default ; } }
Get param value

@param string $param Parameter name to obtain value for
@param mixed $default Default parameter value, if non found in FM

@return mixed
Get param value