Le 08/06/2011 16:52, cleve a écrit :
Hi All,
I'm trying to load some zend libs from a shared php include folder and
can't seem to get it to load properly.
Include path is:
/usr/share/php
Contents of include path:
Zend/Http
Zend/Pdf .... etc
Should this work ....
$app['autoloader']->registerPrefixes(array(
'Zend' => '/Zend',
));
The path is the path to the folder in which there is a /Zend/ folder,
not to the /Zend/ folder itself. If you want to use the PHP
include_path, use an empty string in this place.
I can get an absolute path working ok but this can change between
environments:
$app['autoloader']->registerPrefixes(array(
'Zend' => '/usr/share/php',
));
How do I tell the autoloader to load Zend from the include path?
Thanks,
John C
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en