Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes all site bootstrap to new format
- Loading branch information
1 parent
ce386ff
commit c38cadb
Showing
7 changed files
with
26 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
<?php | ||
|
||
require_once __DIR__ . '/../../bootstrap.php'; | ||
|
||
Loader::loadInstance('utility', 'Debugger'); | ||
|
||
// sets a few global settings | ||
date_default_timezone_set('America/Chicago'); | ||
ini_set('display_errors', 0); | ||
error_reporting(-1); | ||
set_error_handler(array('Debugger', 'internal_error')); | ||
register_shutdown_function(array('Debugger', 'shutdown')); | ||
$namespace = 'blog'; | ||
require_once __DIR__ . '/../index.php'; | ||
|
||
// route | ||
$container['console']->logMemory(null, 'Bootstrapping is done'); | ||
Loader::loadInstance('router', 'Router'); | ||
$container['console']->logMemory(null, 'Routing is done'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
<?php | ||
|
||
require_once __DIR__ . '/../../bootstrap.php'; | ||
|
||
Loader::loadInstance('utility', 'Debugger'); | ||
|
||
// sets a few global settings | ||
date_default_timezone_set('America/Chicago'); | ||
ini_set('display_errors', 0); | ||
error_reporting(-1); | ||
set_error_handler(array('Debugger', 'internal_error')); | ||
register_shutdown_function(array('Debugger', 'shutdown')); | ||
$namespace = 'home'; | ||
require_once __DIR__ . '/../index.php'; | ||
|
||
// route | ||
$container['console']->logMemory(null, 'Bootstrapping is done'); | ||
Loader::loadInstance('router', 'Router'); | ||
$container['console']->logMemory(null, 'Routing is done'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
<?php | ||
|
||
$startTime = microtime(true); | ||
ini_set('display_errors', 0); | ||
|
||
require_once __DIR__ . '/../bootstrap.php'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
<?php | ||
|
||
require_once __DIR__ . '/../../bootstrap.php'; | ||
|
||
Loader::loadInstance('utility', 'Debugger'); | ||
|
||
// sets a few global settings | ||
date_default_timezone_set('America/Chicago'); | ||
ini_set('display_errors', 0); | ||
error_reporting(-1); | ||
set_error_handler(array('Debugger', 'internal_error')); | ||
register_shutdown_function(array('Debugger', 'shutdown')); | ||
$namespace = 'lifestream'; | ||
require_once __DIR__ . '/../index.php'; | ||
|
||
// route | ||
$container['console']->logMemory(null, 'Bootstrapping is done'); | ||
Loader::loadInstance('router', 'Router'); | ||
$container['console']->logMemory(null, 'Routing is done'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
<?php | ||
|
||
require_once __DIR__ . '/../../bootstrap.php'; | ||
|
||
Loader::loadInstance('utility', 'Debugger'); | ||
|
||
// sets a few global settings | ||
date_default_timezone_set('America/Chicago'); | ||
ini_set('display_errors', 0); | ||
error_reporting(-1); | ||
set_error_handler(array('Debugger', 'internal_error')); | ||
register_shutdown_function(array('Debugger', 'shutdown')); | ||
$namespace = 'portfolio'; | ||
require_once __DIR__ . '/../index.php'; | ||
|
||
// route | ||
$container['console']->logMemory(null, 'Bootstrapping is done'); | ||
Loader::loadInstance('router', 'Router'); | ||
$container['console']->logMemory(null, 'Routing is done'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
<?php | ||
|
||
require_once __DIR__ . '/../../bootstrap.php'; | ||
|
||
Loader::loadInstance('utility', 'Debugger'); | ||
|
||
// sets a few global settings | ||
date_default_timezone_set('America/Chicago'); | ||
ini_set('display_errors', 0); | ||
error_reporting(-1); | ||
set_error_handler(array('Debugger', 'internal_error')); | ||
register_shutdown_function(array('Debugger', 'shutdown')); | ||
$namespace = 'waterfalls'; | ||
require_once __DIR__ . '/../index.php'; | ||
|
||
// route | ||
$container['console']->logMemory(null, 'Bootstrapping is done'); | ||
Loader::loadInstance('router', 'Router'); | ||
$container['console']->logMemory(null, 'Routing is done'); |