public function actionView() { // ЗАПОЛНЕНИЕ РАСПИСАНИЯ //$trip = new Timetable(); //$trip->fill_timetable(); $table = new Timetable(); $timetables = $table->find_all_tables(); $timetables = $this->adding_data($timetables); $current_url = "http://" . $_SERVER['HTTP_HOST'] . '/'; echo $this->twig->render("index.html", array('trips' => $timetables, 'url' => $current_url)); }