Esempio n. 1
0
 /**
  * 单例方法
  */
 private static function getInstance()
 {
     //规则单例
     if (empty(self::$_rules)) {
         self::$_rules = (require __DIR__ . '/../configure/rules.php');
     }
     //验证方法单例
     if (!self::$_validate instanceof Validate) {
         self::$_validate = \Validate::getInstance();
     }
 }