Explorar el Código

Update:更新文件名称

Jinhui Zhu hace 4 años
padre
commit
268c6484a4
Se han modificado 3 ficheros con 6 adiciones y 6 borrados
  1. 3 3
      README.md
  2. 2 2
      src/Driver/Base.php
  3. 1 1
      src/Driver/Observer.php

+ 3 - 3
README.md

@@ -1,17 +1,17 @@
-# 新版Qii
+### 新版Qii
 
 使用方法:
 
 1、创建项目
    通过命令行进入当前目录,并执行:php -q _cli.php create=yes workspace=../project cache=tmp useDB=1
 	Command line usage:
-	>php -q _cli.php 并根据提示完成网站的配置
+    php -q _cli.php 并根据提示完成网站的配置
 	程序将自动创建工作目录,并生成首页及配置相关文件。设置好Web网站目录,开启.htaccess即可直接访问。
 	相关的配置文件见 configure/app.ini及configure/db.ini文件
 
 2、框架的使用
 	1) 命令行运行程序, 推荐使用short模式
-		仅支持GET方法
+    仅支持GET方法
 		1. normal模式
 		php -q index.php control=index/action=home/id=100
 		php -q index.php control=plugins/action=index/page=2

+ 2 - 2
src/Driver/Base.php

@@ -34,8 +34,8 @@ namespace Qii\Driver;
 class Base
 {
     const VERSION = '1.3';
-    use traitDatabase;
-    use traitCache;
+    use TraitDatabase;
+    use TraitCache;
     //query 方法
     protected $_query = array(
         "INSERT" => "INSERT INTO %s(%s) VALUES('%s')",

+ 1 - 1
src/Driver/Observer.php

@@ -9,7 +9,7 @@
  *        public $observer;
  *        public function __construct()
  *        {
- *            $this->observer = new \Qii_Driver_Observer($this);
+ *            $this->observer = new \Qii\Driver\Observer($this);
  *    }
  *        public function signup($email, $password)
  *        {