Example #1
0
 * @filesource
 */
error_reporting(0);
ob_start('ob_gzhandler');
include_once APP_PATH . 'core' . DS . 'bind.php';
include_once APP_PATH . 'core' . DS . 'autoload.php';
autoload();
/**
 * include the required files
 */
include_once 'tidy.compress.php';
/**
 * @var object registry
 * @see AppRegistry
 */
$GLOBALS['registry'] = \Registry::createRegistry();
$GLOBALS['registry']->startLoadTime = $startTime;
include_once APP_PATH . 'core' . DS . 'constants.php';
include_once APP_PATH . 'core' . DS . 'config.php';
//for application
include_once APP_PATH . 'core' . DS . 'database.php';
/*
 * set the loader configuration for zend library
 */
include_once 'Zend' . DS . 'Loader.php';
require_once 'Zend' . DS . 'Loader' . DS . 'StandardAutoloader.php';
$autoLoader = new \Zend\Loader\StandardAutoloader(array('fallback_autoloader' => true));
$autoLoader->register();
$GLOBALS['registry']->autoLoader = $autoLoader;
/**
 * auto load model and controllers classes