Forums / Developer / why & when adding extension in ezp_extension.php
Seb Gaillard
Friday 10 July 2009 4:13:36 am
Hi all,
I want to understand why and when is it recommanted to add a new line in <b>ez/autoload/ezp_extension.php</b> ?
Gaetano Giunta
Friday 10 July 2009 5:14:20 am
It is necessary when - you activate an extension that contains php classes- you add new php classes to an extension that is already activated
Normally you regenerate that script via either the admin interface or a cli script.
The only reasons I can think of to alter it by hand is if a - you prefer to have it sorted by extension instead of sorted by filename b - you have php classes that are not detected by eZ automatically (eg. in files named .inc, old-school php way) c - you prefer to remove from it php classes that are available in an extension's dir but you want unavailable d - you have extensions using the same name for a php class and you want to make sure the correct one gets loadede - and similar cases...
[ if you have had in the past anally-retentive 'chef-de-projet' onboard , case a might apply... ;) ]
Principal Consultant International Business Member of the Community Project Board