<?php session_start(); require_once "view/HTMLPage.php"; require_once "view/TimeView.php"; require_once "model/TimeModel.php"; require_once "controller/MainController.php"; $htmlPageView = new \view\HTMLPage(); $mainController = new \controller\MainController(); $timeView = new \view\TimeView(); $timeModel = new \model\TimeModel(); $body = $mainController->doControl(); //theTime $day = $timeModel->getDay(); $date = $timeModel->getDate(); $month = $timeModel->getMonth(); $year = $timeModel->getYear(); $time = $timeModel->getTime(); $time = $timeView->theTime($day, $date, $month, $year, $time); echo $htmlPageView->getHTMLPage($body, $time);