public function basePath($dir = '')
    {
        return $dir == '' ? $this->basePath : $this->basePath . DIRECTORY_SEPARATOR . rtrim($dir, '\/');
    }
public function basePath($dir = '')
    {
        return $dir == '' ? $this->basePath : $this->basePath . DIRECTORY_SEPARATOR . rtrim($dir, '\/');
    }
public function basePath ( $ dir = '' ) { return $ dir == '' ? $ this -> basePath : $ this -> basePath . DIRECTORY_SEPARATOR . rtrim ( $ dir , '\/' ) ; }
Get the base path of the current Pails application.

@param string $dir

@return string
Get the base path of the current Pails application .