From a056c9a27cd31cf8f62f040728af9110671eba93 Mon Sep 17 00:00:00 2001
From: top_nuomi <1130395124@qq.com>
Date: Sat, 31 Aug 2019 02:45:24 +0800
Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=86=99File=E7=BC=93=E5=AD=98?=
=?UTF-8?q?=E7=B1=BB=E3=80=81=E4=BC=98=E5=8C=96=E8=A7=86=E5=9B=BE=E7=BC=93?=
=?UTF-8?q?=E5=AD=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 153 +++++-
.../driver/tags => config}/index.html | 0
framework/create/tpl/controller/index.tpl | 1 +
framework/create/tpl/model/demo.tpl | 1 +
framework/create/tpl/view/index.tpl | 20 +-
framework/extend/wechat/index.html | 0
framework/extend/wechat/token/index.html | 0
framework/library/Controller.php | 12 +-
framework/library/Database.php | 2 +-
framework/library/Router.php | 4 -
framework/library/Template.php | 9 +-
framework/library/View.php | 2 +-
framework/library/cache/File.php | 71 ---
framework/library/cache/Redis.php | 77 ---
framework/library/cache/driver/File.php | 183 +++++++
framework/library/cache/driver/Redis.php | 99 ++++
framework/library/cache/driver/index.html | 0
framework/library/cache/ifs/CacheIfs.php | 2 +-
.../database/driver/ObjectForMySQL.php | 462 ++++++++++++++++++
framework/library/functions/functions.php | 19 +-
framework/library/http/Request.php | 4 +-
.../library/http/response/ResponseData.php | 4 +-
framework/library/http/response/index.html | 0
framework/library/route/driver/Command.php | 4 +-
framework/library/template/driver/Smarty.php | 4 +-
framework/library/template/driver/Top.php | 38 +-
framework/library/template/driver/Twig.php | 4 +-
.../driver/{tags => engine}/Engine.php | 3 +-
.../library/template/driver/engine/index.html | 0
framework/middleware/Init.php | 20 +-
framework/middleware/View.php | 21 +-
framework/traits/index.html | 0
public/index.php | 2 +-
33 files changed, 996 insertions(+), 225 deletions(-)
rename framework/{library/template/driver/tags => config}/index.html (100%)
create mode 100644 framework/extend/wechat/index.html
create mode 100644 framework/extend/wechat/token/index.html
delete mode 100644 framework/library/cache/File.php
delete mode 100644 framework/library/cache/Redis.php
create mode 100644 framework/library/cache/driver/File.php
create mode 100644 framework/library/cache/driver/Redis.php
create mode 100644 framework/library/cache/driver/index.html
create mode 100644 framework/library/database/driver/ObjectForMySQL.php
create mode 100644 framework/library/http/response/index.html
rename framework/library/template/driver/{tags => engine}/Engine.php (99%)
create mode 100644 framework/library/template/driver/engine/index.html
create mode 100644 framework/traits/index.html
diff --git a/README.md b/README.md
index c32b66d..84a3d1c 100644
--- a/README.md
+++ b/README.md
@@ -494,6 +494,7 @@ $object = new 模型();
```
## 模板
+框架自带一款模板引擎,暂时命名为TOP模板引擎。此外支持扩展其他第三方模板引擎,后面会讲到,先来看看自带模板引擎的基础使用。
### 模板继承
模板继承通过extend标签与block标签配合使用实现。
一个最简单的继承
@@ -657,6 +658,107 @@ public function _say($tag)
TOP-Framework
+ +TOP-Framework