Created
September 20, 2012 08:08
-
-
Save dbaltas/3754591 to your computer and use it in GitHub Desktop.
init.php updates for Centurion integration in existing Zend Framework Application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+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