From 3f7b1be40020415e2f7f89f2a198f148ec7edb69 Mon Sep 17 00:00:00 2001
From: caiyuzheng <290198252@qq.com>
Date: Wed, 28 Aug 2019 17:16:03 +0800
Subject: [PATCH] =?UTF-8?q?controller=20=E6=B7=BB=E5=8A=A0=E4=BA=86?=
=?UTF-8?q?=E8=8E=B7=E5=8F=96query=E7=9A=84=E6=94=AF=E6=8C=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App/Controllers/Blog.php | 3 +--
App/Controllers/Home.php | 5 +----
App/Views/blog/basic.html | 1 -
Core/Controller.php | 5 ++---
Core/Router.php | 10 ++++++----
public/index.php | 9 +++++++++
6 files changed, 19 insertions(+), 14 deletions(-)
diff --git a/App/Controllers/Blog.php b/App/Controllers/Blog.php
index 7abf080..f1f8547 100644
--- a/App/Controllers/Blog.php
+++ b/App/Controllers/Blog.php
@@ -26,10 +26,9 @@ class Blog extends Controller
View::renderTemplate("/blog/basic.html",['docs'=>$docs,'index'=>false]);
}
function articleAction(){
-
+ print_r($this->query_string);
}
function jsAction(){
print_r($_SERVER);
-
}
}
\ No newline at end of file
diff --git a/App/Controllers/Home.php b/App/Controllers/Home.php
index d28be53..9404275 100644
--- a/App/Controllers/Home.php
+++ b/App/Controllers/Home.php
@@ -18,10 +18,7 @@ class Home extends \Core\Controller
* @return void
*/
public function indexAction() {
- $ret = [];
- $ret[1] = "hello";
- //View::renderTemplate('Home/index.html');
- $this->JsonResp(200,$ret,"OK");
+
}
public function usersAction() {
$user = Models\User::getAll();
diff --git a/App/Views/blog/basic.html b/App/Views/blog/basic.html
index 1e86562..e991621 100644
--- a/App/Views/blog/basic.html
+++ b/App/Views/blog/basic.html
@@ -6,7 +6,6 @@
-