public function getBaseDir()
    {
        if (empty($this->baseDir)) {
            $this->baseDir = trim(str_replace('index.php', '', Server::get('SCRIPT_NAME')), '/');
        }

        return $this->baseDir;
    }
public function getBaseDir()
    {
        if (empty($this->baseDir)) {
            $this->baseDir = trim(str_replace('index.php', '', Server::get('SCRIPT_NAME')), '/');
        }

        return $this->baseDir;
    }
public function getBaseDir ( ) { if ( empty ( $ this -> baseDir ) ) { $ this -> baseDir = trim ( str_replace ( 'index.php' , '' , Server :: get ( 'SCRIPT_NAME' ) ) , '/' ) ; } return $ this -> baseDir ; }
Get application base directory.

@return type
Get application base directory .