Skip to content

Instantly share code, notes, and snippets.

@martinsbalodis
Created March 2, 2012 19:44
Show Gist options
  • Save martinsbalodis/1960807 to your computer and use it in GitHub Desktop.
Save martinsbalodis/1960807 to your computer and use it in GitHub Desktop.
Autoload Zend Framework 2 library in kohana
<?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