All pastes #476089 Raw Edit

Stuff

public php v1 · immutable
·published 2007-05-07 21:34 UTC
rendered paste body
static public function autoload($class){    if ('ezcBase' == $class && false !== class_exists('ezcBase')) {        require_once 'ezComponents/Base/src/base.php';    } elseif ('ezc' === substr($class, 0, 3)) {        ezcBase::autoload($class);    } else {        Zend_Loader::loadClass($class);    }}... snip ...define('ENVIRONMENT', 'development');error_reporting(E_ALL|E_NOTICE);set_include_path(    '../application' . PATH_SEPARATOR .    '../application/models' . PATH_SEPARATOR .    '../application/models/Tables' . PATH_SEPARATOR .    '../library' . PATH_SEPARATOR .    get_include_path());require_once "../library/Zend/Loader.php";require_once "../library/Axiom.php";require_once "../library/Doctrine.php";Zend_Loader::registerAutoload();Zend_Loader::registerAutoload('Doctrine');$config = new Zend_Config_Ini('../application/config/' . ENVIRONMENT . '.ini',    'config');Zend_Registry::set('config', $config);Axiom_Loader::registerDoctrineManager();$front = Zend_Controller_Front::getInstance();$front->throwExceptions(true)	  ->setControllerDirectory('../application/controllers');$front->dispatch();