API: Config Index action call find('hash')

This commit is contained in:
Kyle Johnson 2015-03-03 09:34:11 -05:00
parent a395f9a9f7
commit 683c4eed4b
1 changed files with 4 additions and 2 deletions

View File

@ -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')