Replace configs/keyvalue functionality with CRUD
This commit is contained in:
parent
a228a5077c
commit
8c8ae6ae6f
|
@ -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']
|
||||
]
|
||||
|
|
|
@ -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')
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 6faf8df67fb788351e00e9401670558cad3dab05
|
||||
Subproject commit 622d3cc5c8ea3629e8e4a85e2cb2a7770409aab7
|
Loading…
Reference in New Issue