Quellcode durchsuchen

Fixed:Funcs未引入问题

Zhu Jinhui vor 7 Jahren
Ursprung
Commit
4c94e911ec
2 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 1 1
      Qii/Base/Rules.php
  2. 1 0
      Qii/Qii.php

+ 1 - 1
Qii/Base/Rules.php

@@ -204,7 +204,7 @@ class Rules
         {
             return $data;
         }
-        $valid = _loadClass('\Qii\Library\Validate');
+        $valid = \_loadClass('\Qii\Library\Validate');
         //将optionValidKey中不为空的字段添加到必须验证的字段中去
         //如果选择验证的都没数据就提示参数错误
         $options = array();

+ 1 - 0
Qii/Qii.php

@@ -27,6 +27,7 @@ require Qii_DIR . DS . 'Autoloader' . DS . 'Import.php';
 \Qii\Autoloader\Import::setFileLoaded(Qii_DIR . DS . 'Autoloader' . DS . 'Import.php');
 
 \Qii\Autoloader\Import::requires(array(Qii_DIR . DS .'Consts'. DS . 'Config.php',
+                                Qii_DIR . DS . 'Functions'. DS . 'Funcs.php',
                                 Qii_DIR . DS .'Autoloader'. DS . 'Factory.php',
                                 Qii_DIR . DS . 'Application.php',
                                 Qii_DIR . DS .'Autoloader'. DS . 'Psr4.php',