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
|
||||
*/
|
||||
public function index() {
|
||||
$this->Config->recursive = 0;
|
||||
$configs = $this->Config->find('all');
|
||||
$configs = $this->Config->find('hash', array(
|
||||
'fields' => array('Config.Name', 'Config.Value', 'Config.Hint', 'Config.Id')
|
||||
));
|
||||
|
||||
$this->set(array(
|
||||
'configs' => $configs,
|
||||
'_serialize' => array('configs')
|
||||
|
|
Loading…
Reference in New Issue