<?php define('HACK', true); header('Content-type: text/html; Charset=utf-8'); session_start(); require_once 'config.php'; set_include_path(get_include_path() . PATH_SEPARATOR . CONTROLLER . PATH_SEPARATOR . MODEL); function __autoload($class_name) { if (!(include_once $class_name . ".php")) { try { throw new ContrException('Неправильный файл для подключения'); } catch (ContrException $e) { echo $e->getMessage(); } } } $obj = Route_Controller::get_instance(); $obj->route();