Ejemplo n.º 1
0
 private function isExist($siteId)
 {
     $site = DB::select('id')->from(Model_Site::table())->where('id', '=', $siteId)->execute()->current();
     return !empty($site);
 }
Ejemplo n.º 2
0
 public function delete_index($id)
 {
     DB::delete(Model_Site::table())->where('id', '=', $id)->execute();
     $this->response(array('ok' => true), 200);
 }