/ Published in: PHP
Application bootstrap to get some startup code out of the way. This one has an autoloader.
Expand |
Embed | Plain Text
// put this in bootstrap.php and place in the main app dir date_default_timezone_set('America/New_York'); function x_autoload($cls){ @include_once($cls . '.php'); // does the class requested actually exist now? // yes, we're done return; } } spl_autoload_register('x_autoload');
You need to login to post a comment.
