Crunz\Utils::getBaseDir PHP Method

getBaseDir() public static method

Return project's root directory
public static getBaseDir ( ) : string
return string
    public static function getBaseDir()
    {
        return getenv('CRUNZ_BASE_DIR');
    }

Usage Example

Example #1
0
 /**
  * Return the project's root directory
  *
  * @return string
  */
 function getbase()
 {
     return Utils::getBaseDir();
 }