Skip to content

Instantly share code, notes, and snippets.

@tarnfeld
Created February 5, 2012 16:41
Show Gist options
  • Select an option

  • Save tarnfeld/1746495 to your computer and use it in GitHub Desktop.

Select an option

Save tarnfeld/1746495 to your computer and use it in GitHub Desktop.
sdfdsf
<?php
// Load in the Autoloader
require COREPATH.'classes'.DIRECTORY_SEPARATOR.'autoloader.php';
class_alias('Fuel\\Core\\Autoloader', 'Autoloader');
// Bootstrap the framework DO NOT edit this
require COREPATH.'bootstrap.php';
Autoloader::add_classes(array(
// php-cloudfiles vendor classes
'CF_Authentication' => APPPATH.'vendor/php-cloudfiles/cloudfiles.php',
'CF_Connection' => APPPATH.'vendor/php-cloudfiles/cloudfiles.php',
'CF_Container' => APPPATH.'vendor/php-cloudfiles/cloudfiles.php',
'CF_Object' => APPPATH.'vendor/php-cloudfiles/cloudfiles.php',
));
// Register the Imagine vendor library namespace to the imagine path
Autoloader::add_namespace('Imagine', APPPATH . 'vendor/imagine/lib/Imagine/', true);
// Register the autoloader
Autoloader::register();
/**
* Your environment. Can be set to any of the following:
*
* Fuel::DEVELOPMENT
* Fuel::TEST
* Fuel::STAGE
* Fuel::PRODUCTION
*/
Fuel::$env = (isset($_SERVER['FUEL_ENV']) ? $_SERVER['FUEL_ENV'] : Fuel::PRODUCTION);
// Initialize the framework with the config file.
Fuel::init('config.php');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment