I found this question but somehow, I still don't understand how to include the zend framework.
Zend is located at C:\wamp\zend-library\Zend
(this folder contains folders like "barcode", "cache", "db", "EventManager" and so on...)
My php include path is configured like this in php.ini: include_path = ".;C:\wamp\zend-library\Zend"
(it is uncommented and the line doesn't start with ;
)
output of echo get_include_path()
is .;C:\wamp\zend-library\Zend
When trying to run a piece of code where is:
$adapter = new Zend\Db\Adapter\Adapter(array(
'driver' => 'Mysqli',
'database' => 'zend_db_example',
'username' => 'developer',
'password' => 'developer-password'
));
I get only this error: Fatal error: Class 'Zend\Db\Adapter\Adapter' not found in C:\wamp\www\test.php on line 23
I'm using a windows 7 machine, but somehow everywhere everybody is just writing:
Your PHP include_path needs to contain the path to Zend Framework's library
but nobody gives an example how to set up the whole thing. Am I missing some vital information or I just don't understand the whole "simply include it in your path" thing?