- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
public function action_delete(){
if (ORM::factory($_GET['type'], $_GET['id'])->delete())
$arr[0] = array("text" => "ok");
else
$arr[0] = array("text" => "no");
echo json_encode($arr);
}