<?php // Реализация FrontController ini_set('display_errors', 1); error_reporting(E_ALL); // сообщения об ошибках // Подключение файлов системы (файлы каркаса) define('ROOT', dirname(__FILE__)); include_once ROOT . '/components/Router.php'; include_once ROOT . '/components/db.php'; // Вызов роутера $Router = new Router(); $Router->findNecessaryController(); ?>