Forums / Developer / exclude directories from autoload array
Michael L.
Tuesday 05 October 2010 6:32:26 am
Hi @ all,
I would like to include openx in ezpublish 4.4.now I have the following directory structure:
extension -xnetadserver --design --settings --src---openx
openx produces many errors in the autoload array. how can I exclude the src/openx directories from autoload array?
Thanks for your help...
Michael
Damien Pobel
Tuesday 05 October 2010 6:51:07 am
Hi Michael,
what kind of error do you have ?
Damien Planet eZ Publish.fr : http://www.planet-ezpublish.fr Certification : http://auth.ez.no/certification/verify/372448 Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish
Tuesday 05 October 2010 6:57:32 am
Hi Damien,
all errors look like this:
Problems detected during autoload generation:
.
and so on...
Frédéric DAVID
Tuesday 05 October 2010 7:54:28 am
The script bin/php/ezpgenerateautoloads.php have a option to exclude some directories.
You can use the option --exclude= to exclude some things
Example :
php bin/php/ezpgenerateautoloads.php -e --exclude=extension_path
Blog : http://www.frefred.fr/blog/ez-publish feZ Meta Data : http://projects.ez.no/fezmetadata
Wednesday 06 October 2010 7:24:23 am
Hi Frédéric,
this works fine! But it is possible to write a phpfile to manage this?
e.g. in the eztemplateautoload.php file i can define the $eZTemplateOperatorArray which are automatically loaded into the system.
is a similar solution for directories inside the extensions available?
Friday 08 October 2010 2:18:29 am
Hi
the directive --exclude can take all directory path you want like extension/xnetadserver/src/openx.
You can separate differents directories with a ,
php bin/php/ezpgnerateautoloads.php --exclude=first_directory,subdirectory_of_an_extension
Regards