Example #1
0
 public function actionLoad_repair()
 {
     $truck = new \app\models\Truck();
     $truck_license = Yii::$app->request->post('truck_licenses');
     $year = Yii::$app->request->post('year');
     $month = Yii::$app->request->post('month');
     $repair = $truck->get_repair_in_order($truck_license, $year, $month);
     return $this->renderPartial('load_repair', ["truck_license" => $truck_license, "repair" => $repair]);
 }