public function documentRoot() {
        if ($this->documentRoot == null) {
            $this->documentRoot = isset($this->serverVariables['DOCUMENT_ROOT']) ? $this->serverVariables['DOCUMENT_ROOT'] : substr(PHPMVC_ROOT_PATH, 0, -1);
        }

        return $this->documentRoot;
    }
public function documentRoot() {
        if ($this->documentRoot == null) {
            $this->documentRoot = isset($this->serverVariables['DOCUMENT_ROOT']) ? $this->serverVariables['DOCUMENT_ROOT'] : substr(PHPMVC_ROOT_PATH, 0, -1);
        }

        return $this->documentRoot;
    }
public function documentRoot ( ) { if ( $ this -> documentRoot == null ) { $ this -> documentRoot = isset ( $ this -> serverVariables [ 'DOCUMENT_ROOT' ] ) ? $ this -> serverVariables [ 'DOCUMENT_ROOT' ] : substr ( PHPMVC_ROOT_PATH , 0 , - 1 ) ; } return $ this -> documentRoot ; }
Gets the document root directory under which the current script is executing, as defined in the server's configuration file.

@return string
Gets the document root directory under which the current script is executing as defined in the server s configuration file .