API: Config Index action call find('hash')
This commit is contained in:
parent
a395f9a9f7
commit
683c4eed4b
|
@ -20,8 +20,10 @@ class ConfigsController extends AppController {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function index() {
|
public function index() {
|
||||||
$this->Config->recursive = 0;
|
$configs = $this->Config->find('hash', array(
|
||||||
$configs = $this->Config->find('all');
|
'fields' => array('Config.Name', 'Config.Value', 'Config.Hint', 'Config.Id')
|
||||||
|
));
|
||||||
|
|
||||||
$this->set(array(
|
$this->set(array(
|
||||||
'configs' => $configs,
|
'configs' => $configs,
|
||||||
'_serialize' => array('configs')
|
'_serialize' => array('configs')
|
||||||
|
|
Loading…
Reference in New Issue