-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
31 lines (25 loc) · 1.01 KB
/
index.php
File metadata and controls
31 lines (25 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/**
* Точка входа
*
* Файл на который перенаправляются все запросы к сайту, подключает ядро сайта и запускает приложение
*
* Web-site: http://www.pamparam.net/
* Author: r0n9.GOL email: ron9.gol@gmail.com
*
*/
// Подключаем файл настроек
require 'application/settings/config.php';
// Создаем строку путей
$paths = implode(PATH_SEPARATOR,
array(
$config['path']['library'],
$config['path']['models']
));
// Устанавливаем пути по которым происходит поиск подключаемых файлов, это папка библиотек, моделей и системных файлов
set_include_path($paths);
// Подключение главного системного класса
require 'application/Bootstrap.php';
// Запуск приложения
$bootstrap = new Bootstrap();
$bootstrap->run($config);