Exemple #1
0
 /**
  * 服务模式
  */
 public function actionIndex($sid)
 {
     $Substance = new Substance();
     $this->data = $Substance->getOne('*', array('sid' => $sid));
 }
 /**
  * 添加、修改内容
  */
 public function actionModify($id)
 {
     $Substance = new Substance();
     $id = (int) $id;
     $this->data = $Substance->getOne('*', array('sid' => $id));
 }