I'm trying to use some Zend Components without the MVC structure. For example, if i have this directory structure:
- /
- /Zend
- /images
- .
- .
/css
include('Zend/Db.php'); $db = Zend_Db::factory( $db_config['adapter'], $db_config ); //ready to use
But, if I want to have this structure:
- /
- /images
- /Lib
- Zend
- OtherLib
/css
include('Lib/Zend/Db.php'); $db = Zend_Db::factory( $db_config['adapter'], $db_config ); //ready to use
But here, it fails because the other files and classes are looking at: / Zend instead of lib / Zend
How can I have access to the Zend_Db class in all of my files, independently of the folder level?
Thanks!