From f2bb58abd6056c2ee8ef7044338c77a562c91b1c Mon Sep 17 00:00:00 2001 From: zhiqiang Date: Fri, 3 Nov 2017 18:15:14 +0800 Subject: [PATCH] remove title from ct cmd template and add get routers --- core/command/templates/ct-add.html | 6 ------ core/command/templates/ct-edit.html | 6 ------ core/command/templates/ctcontroller.php.html | 2 -- core/command/templates/routing-controller.yml.html | 1 + core/lib/Hunter/App/Application.php | 7 +++++++ 5 files changed, 8 insertions(+), 14 deletions(-) diff --git a/core/command/templates/ct-add.html b/core/command/templates/ct-add.html index 66618e7..4099a9a 100644 --- a/core/command/templates/ct-add.html +++ b/core/command/templates/ct-add.html @@ -14,12 +14,6 @@
-
- -
- -
-
diff --git a/core/command/templates/ct-edit.html b/core/command/templates/ct-edit.html index edf3c60..79442b1 100644 --- a/core/command/templates/ct-edit.html +++ b/core/command/templates/ct-edit.html @@ -14,12 +14,6 @@
-
- -
- -
-
diff --git a/core/command/templates/ctcontroller.php.html b/core/command/templates/ctcontroller.php.html index d939384..9d39270 100644 --- a/core/command/templates/ctcontroller.php.html +++ b/core/command/templates/ctcontroller.php.html @@ -41,7 +41,6 @@ $id = db_insert('') ->fields(array( - 'title' => $title, '' => $, @@ -86,7 +85,6 @@ db_update('') ->fields(array( - 'title' => $title, '' => $, diff --git a/core/command/templates/routing-controller.yml.html b/core/command/templates/routing-controller.yml.html index 3644031..040cbd7 100644 --- a/core/command/templates/routing-controller.yml.html +++ b/core/command/templates/routing-controller.yml.html @@ -15,4 +15,5 @@ options: nocache: TRUE + diff --git a/core/lib/Hunter/App/Application.php b/core/lib/Hunter/App/Application.php index eb62436..cc0ea96 100644 --- a/core/lib/Hunter/App/Application.php +++ b/core/lib/Hunter/App/Application.php @@ -413,6 +413,13 @@ public function getPermissionsList() { return $this->permissionList; } + /** + * {@inheritdoc} + */ + public function getRoutes() { + return $this->routers; + } + /** * {@inheritdoc} */