Login   Register  
PHP Classes
elePHPant
Icontem

File: app/bootstrap.inc

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Stefan Löwe  >  Reingold Tilford  >  app/bootstrap.inc  >  Download  
File: app/bootstrap.inc
Role: Configuration script
Content type: text/plain
Description: bootstrap file of the package
Class: Reingold Tilford
Render tree structures in several image formats
Author: By
Last change:
Date: 2011-11-07 13:37
Size: 571 bytes
 

Contents

Class file image Download
<?php

// path to the root folder of the installation
define('INSTALLATION_FOLDER'str_replace('\\''/'realpath(__DIR__.'/..')));

// path to the source folder
define('SOURCE_FOLDER'INSTALLATION_FOLDER.'/src');

// path to the data folder
define('DATA_FOLDER'INSTALLATION_FOLDER.'/data');

// load the class of the autoloader statically
require_once SOURCE_FOLDER.'/Utils/Autoload/Autoloader.inc';

// instantiate it ...
$autoloader = new Utils\Autoload\Autoloader(SOURCE_FOLDER.'/');

// ... and register it
spl_autoload_register(array($autoloader'autoload'));