Created
March 2, 2012 19:44
-
-
Save martinsbalodis/1960807 to your computer and use it in GitHub Desktop.
Autoload Zend Framework 2 library in kohana
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
<?php | |
/** | |
* Enable Zend Framework autoloading | |
*/ | |
if ($path = Kohana::find_file('vendor', 'Zend/library/Zend/Loader')) { | |
ini_set('include_path', | |
ini_get('include_path') . PATH_SEPARATOR . dirname(dirname($path))); | |
require_once 'Zend/Loader/AutoloaderFactory.php'; | |
Zend\Loader\AutoloaderFactory::factory(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment