public function destroy() { $wid = I('param.wid', ''); $work = new \Admin\Model\WorkModel(); $this->ajaxReturn($work->deleteWork($wid), "json"); }