Skip to content

Instantly share code, notes, and snippets.

@dbaltas
Created September 20, 2012 08:08
Show Gist options
  • Save dbaltas/3754591 to your computer and use it in GitHub Desktop.
Save dbaltas/3754591 to your computer and use it in GitHub Desktop.
init.php updates for Centurion integration in existing Zend Framework Application
+require_once 'Centurion/Application.php';
+
+require_once 'Zend/Loader/Autoloader.php';
+$autoloader = Zend_Loader_Autoloader::getInstance()
+ ->registerNamespace('Centurion_')
+ ->setDefaultAutoloader(create_function('$class',
+ "include str_replace('_', '/', \$class) . '.php';"
+ ));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment