コード例 #1
0
ファイル: MoneyIoSearch.php プロジェクト: jh27408079/magenet
 public function insterMoneyIo($form)
 {
     $model = new MoneyIo();
     $array['MoneyIo'] = $form->toArray();
     $model->load($array);
     $model->save();
 }
コード例 #2
0
 /**
  * Finds the MoneyIo model based on its primary key value.
  * If the model is not found, a 404 HTTP exception will be thrown.
  * @param integer $id
  * @return MoneyIo the loaded model
  * @throws NotFoundHttpException if the model cannot be found
  */
 protected function findModel($id)
 {
     if (($model = MoneyIo::findOne($id)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }