Example #1
0
 public function indexAction()
 {
     $login = \Comm\Arg::get('login', FILTER_VALIDATE_BOOLEAN);
     if (Yaf_Registry::get('current_uid') && !$login) {
         //已登录,跳至管理页
         return $this->redirect(\Comm\View::path('manage/basic'));
     } else {
         //未登录,展示介绍页
         $this->viewDisplay();
     }
 }
Example #2
0
 /**
  * 获取Minify 组设置
  * 
  * @return array
  */
 public static function loadGroupConfig()
 {
     $config = (include CONF_PATH . '/minify-groups.php');
     foreach ($config as $path => $files) {
         $extension = pathinfo($path, PATHINFO_EXTENSION);
         foreach ($files as $key => $file) {
             $file = '//' . \Comm\View::path("static/dev-{$extension}/{$file}.{$extension}");
             $config[$path][$key] = $file;
         }
     }
     return $config;
 }