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