From 8c8ae6ae6f7a6a9cad3a318135453be4a38ff867 Mon Sep 17 00:00:00 2001 From: Kyle Johnson Date: Fri, 27 Feb 2015 11:20:45 -0500 Subject: [PATCH] Replace configs/keyvalue functionality with CRUD --- web/api/app/Controller/AppController.php | 3 ++- web/api/app/Controller/ConfigsController.php | 10 ---------- web/api/app/Plugin/Crud | 2 +- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/web/api/app/Controller/AppController.php b/web/api/app/Controller/AppController.php index 160514054..8185f7a0e 100644 --- a/web/api/app/Controller/AppController.php +++ b/web/api/app/Controller/AppController.php @@ -40,7 +40,8 @@ class AppController extends Controller { 'index' => 'Crud.Index', 'add' => 'Crud.Add', 'edit' => 'Crud.Edit', - 'view' => 'Crud.View' + 'view' => 'Crud.View', + 'keyvalue' => 'Crud.List' ], 'listeners' => ['Api', 'ApiTransformation'] ] diff --git a/web/api/app/Controller/ConfigsController.php b/web/api/app/Controller/ConfigsController.php index e454d82ac..998e240fa 100644 --- a/web/api/app/Controller/ConfigsController.php +++ b/web/api/app/Controller/ConfigsController.php @@ -141,15 +141,5 @@ class ConfigsController extends AppController { } } - - public function keyValue() { - $keyValues = $this->Config->find('list', array( - 'fields' => array('Config.Name', 'Config.Value') - )); - $this->set(array( - 'keyValues' => $keyValues, - '_serialize' => array('keyValues') - )); - } } diff --git a/web/api/app/Plugin/Crud b/web/api/app/Plugin/Crud index 6faf8df67..622d3cc5c 160000 --- a/web/api/app/Plugin/Crud +++ b/web/api/app/Plugin/Crud @@ -1 +1 @@ -Subproject commit 6faf8df67fb788351e00e9401670558cad3dab05 +Subproject commit 622d3cc5c8ea3629e8e4a85e2cb2a7770409aab7