Exemplo n.º 1
0
 public function putAction()
 {
     $account_group_dao = new AccountGroupDao('account_group');
     $account_group = array();
     $account_group['id'] = $this->getRequest()->getParam('id');
     $account_group['name'] = $this->getRequest()->getParam('name');
     $config_list = $this->getRequest()->getParam('config');
     $config_dao = new ConfigDao();
     foreach ($config_list as $key => $value) {
         $config_dao->insert_update(array('value' => $value, 'name' => $key, 'account_group_id' => $account_group['id']));
     }
     $account_group_dao->update($account_group);
     $this->redirect('/account-group');
 }