public function delete($id) { $this->authority(51); $doc_table = new DocumentTable(); $doc = $doc_table->select($id); $doc_table->delete($id); unlink($this->location . $doc['doc_id'] . '_' . $doc['doc_name']); Util::go_back(); }