Share » Forums » Developer » why & when adding extension in...

why & when adding extension in ezp_extension.php

why & when adding extension in ezp_extension.php

Friday 10 July 2009 4:13:36 am - 1 reply

Author Message

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 loaded
e - 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

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu