Skip to content

Instantly share code, notes, and snippets.

@al-the-x
Created October 26, 2011 14:30
Show Gist options
  • Save al-the-x/1316525 to your computer and use it in GitHub Desktop.
Save al-the-x/1316525 to your computer and use it in GitHub Desktop.
Example of loading the Zend Framework as a Lithium library
<?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