Ejemplo n.º 1
0
 /**
  * Web Application应用入口
  * 
  * @param string $appName        
  * @param string|array $config        
  * @return WindWebApplication
  */
 public static function application($appName = '', $config = array())
 {
     if (self::$_front === null) {
         self::$_classes['WindWebFrontController'] = 'web/WindWebFrontController';
         self::$_front = new WindWebFrontController($appName, $config);
     }
     return self::$_front;
 }