Initial commit.
This commit is contained in:
commit
2c860e8009
43 changed files with 12560 additions and 0 deletions
28
bootstrap.php
Normal file
28
bootstrap.php
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
spl_autoload_register(function ($class)
|
||||
{
|
||||
$file = str_replace(array('\\', '_'), '/', $class);
|
||||
$file .= '.php';
|
||||
|
||||
if(substr($file, 0, 1) == '/')
|
||||
{
|
||||
$file = substr($file, 1);
|
||||
}
|
||||
|
||||
if(is_file(dirname(__FILE__) . '/' . $file))
|
||||
{
|
||||
include(dirname(__FILE__) . '/' . $file);
|
||||
|
||||
return;
|
||||
}
|
||||
}, true, true);
|
||||
|
||||
define('APPLICATION_PATH', dirname(__FILE__) . '/');
|
||||
|
||||
require_once('vendor/autoload.php');
|
||||
require_once('config.php');
|
||||
|
||||
b8\Registry::getInstance()->set('app_namespace', 'PHPCI');
|
||||
b8\Registry::getInstance()->set('DefaultController', 'Index');
|
||||
b8\Registry::getInstance()->set('ViewPath', dirname(__FILE__) . '/PHPCI/View/');
|
||||
Loading…
Add table
Add a link
Reference in a new issue