public function actionAdd() { $region = $_POST['region']; $out = $_POST['date_out']; $there = $_POST['date_there']; $back = $_POST['date_back']; $courier = $_POST['courier']; $table = new Timetable(); $table->add_trip($region, $courier, $out, $there, $back); $redirect = new Redirect(); $redirect->redir("", ''); }