예제 #1
0
 public function actionAdd()
 {
     $sup = new Supplies();
     $sup->images = Url::base() . "/media_file/no_photo.png";
     $sup->code = 1;
     $sup->color = 1;
     $sup->price = "цена";
     $sup->type_blind = 1;
     $sup->type_mat = 1;
     $sup->type_width = "ширина";
     $sup->status = 1;
     $sup->save();
     //Debag::prn(mysql_error());
     return $this->redirect(['index']);
 }