function deleteattachment_action() { $attachment=new attachment(); $id = intval(front::get('id')); $attachment->del($id); }