/** * 服务模式 */ public function actionIndex($sid) { $Substance = new Substance(); $this->data = $Substance->getOne('*', array('sid' => $sid)); }
/** * 删除 */ public function actionDelete($id) { $id = (int) $id; $Substance = new Substance(); $Substance->delete(array('sid' => $id)); WaveCommon::exportResult(true, '成功!'); }