bootstrap.php 661 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. // Load in the Autoloader
  3. require COREPATH.'classes'.DIRECTORY_SEPARATOR.'autoloader.php';
  4. class_alias('Fuel\\Core\\Autoloader', 'Autoloader');
  5. // Bootstrap the framework DO NOT edit this
  6. require COREPATH.'bootstrap.php';
  7. Autoloader::add_classes(array(
  8. // Add classes you want to override here
  9. // Example: 'View' => APPPATH.'classes/view.php',
  10. ));
  11. // Register the autoloader
  12. Autoloader::register();
  13. /**
  14. * Your environment. Can be set to any of the following:
  15. *
  16. * Fuel::DEVELOPMENT
  17. * Fuel::TEST
  18. * Fuel::STAGE
  19. * Fuel::PRODUCTION
  20. */
  21. Fuel::$env = Fuel::PRODUCTION;
  22. // Initialize the framework with the config file.
  23. Fuel::init('config.php');