Created
October 26, 2011 14:30
-
-
Save al-the-x/1316525 to your computer and use it in GitHub Desktop.
Example of loading the Zend Framework as a Lithium library
This file contains hidden or 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 | |
use \lithium\core\Libraries; | |
// Lots of other stuff... | |
/** | |
* Zend Framework 1.11.x is installed via PEAR into the standard PHP include_path | |
* location. We just need Lithium to know how to get to it. | |
*/ | |
Libraries::add('Zend', array( | |
'prefix' => 'Zend_', | |
'path' => 'Zend', // To look in "{$include_path}/Zend"... | |
'bootstrap' => 'Loader/Autoloader.php', // To include Zend_Load_Autoloader... | |
'loader' => array('Zend_Loader_Autoloader', 'autoload'), | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment