/** * dir_app * * @method dir_app * @return string app directry path */ public static function dir_app() { static $val = null; if ($val === null) { if (starts_with('/', self::$_options['app_uri'])) { $val = realpath(self::$_options['app_uri']) . DS; } else { $val = realpath(self::dir_htdocs() . self::$_options['app_uri']) . DS; } $val = realpath(Atto::dir_gateScript() . str_replace('/', DS, self::$_options['app_uri'])) . DS; } return $val; }