public static function initialise(Meshing_Paths $paths) { // Ignore repeated calls if (self::$isMeshingInitialised) { return; } self::$isMeshingInitialised = true; // Store static copy of paths config self::$paths = $paths; $projectRoot = self::getProjectRoot(); // Set up model & class search paths self::$oldIncludes = set_include_path($projectRoot . self::getPaths()->getPathZend() . PATH_SEPARATOR . $projectRoot . self::getPaths()->getPathPropelGenerator() . PATH_SEPARATOR . $projectRoot . self::getPaths()->getPathPhing() . PATH_SEPARATOR . $projectRoot . self::getPaths()->getPathMeshing() . PATH_SEPARATOR . $projectRoot . self::getPaths()->getPathSimpleTest() . PATH_SEPARATOR . get_include_path()); // Set up the Zend autoloader require_once 'Zend/Loader/Autoloader.php'; $loader = Zend_Loader_Autoloader::getInstance(); // Autoload our own classes $loader->registerNamespace('Meshing_'); }