Beispiel #1
0
 /**
  * Return base app dir
  *
  * @return string
  */
 public static function getBaseDir()
 {
     if (self::$_appRoot) {
         return self::$_appRoot;
     }
     $appRoot = realpath(dirname(''));
     if (is_dir($appRoot) and is_readable($appRoot)) {
         self::$_appRoot = $appRoot;
         return self::$_appRoot;
     } else {
         die($appRoot . ' is not a directory or not readable by this user');
     }
 }