/** * Returns the absolute path of the xaraya system root, NOT the web root * Note that there will be NO slash at the end of the returne path. * * @return string **/ public static function root() { // We are in <root>/lib/bootstrap.php and we want <root> if (!isset(self::$root)) { self::$root = dirname(dirname(realpath(__FILE__))); } return self::$root; }