コード例 #1
0
ファイル: Db.php プロジェクト: vgrish/dvelum
 /**
  * Remove Database connection
  */
 public function removeAction()
 {
     $id = Request::post('id', 'integer', false);
     if ($id === false) {
         Response::jsonError($this->_lang->WRONG_REQUEST);
     }
     $this->_connConfig->remove($id);
     if ($this->_connConfig->save()) {
         Response::jsonSuccess();
     } else {
         Response::jsonError($this->_lang->CANT_WRITE_FS);
     }
 }