public function setVar($varName, $varValue, $force = false)
    {
        if (isset($this->variableList[$varName]) && $force === false) {
            trigger_error('Variable "' . $varName . '" is already defined in Layout.', E_USER_WARNING);
            return false;
        }
        $this->variableList[$varName] = $varValue;
        return true;
    }
public function setVar($varName, $varValue, $force = false)
    {
        if (isset($this->variableList[$varName]) && $force === false) {
            trigger_error('Variable "' . $varName . '" is already defined in Layout.', E_USER_WARNING);
            return false;
        }
        $this->variableList[$varName] = $varValue;
        return true;
    }
public function setVar ( $ varName , $ varValue , $ force = false ) { if ( isset ( $ this -> variableList [ $ varName ] ) && $ force === false ) { trigger_error ( 'Variable "' . $ varName . '" is already defined in Layout.' , E_USER_WARNING ) ; return false ; } $ this -> variableList [ $ varName ] = $ varValue ; return true ; }
Set var to Layout

@since   1.0
@param   string $varName Name of var send to View
@param   string $varValue Value of var send to View
@param   bool $force Force change of var value if var already exist
@return  bool Return true
Set var to Layout