public static function root() { $application = url::application(); $dir = explode('/', $application); array_pop($dir); //默认情况下,admin位于system下面 array_pop($dir); $root = implode('/', $dir); return $root; }
public static function theme() { $theme = zotop::config('zotop.theme'); $theme = empty($theme) ? 'blue' : $theme; return url::application() . '/themes/' . $theme; }
/** * 获取当前应用的公共目录 * * @return string 如:<install>/system/admin/common */ public static function common() { return url::application() . '/common'; }