Forums / Cotonti / Extensions / Support / my plugin doesnt work on live server

Trustmaster
#37160 2013-03-05 10:26

This is simple. Hooks are just PHP includes as you know. And they have the Order property, but normally you use the default Order value. Hook handlers having the same Order value are executed in the order they were installed and you are likely to install plugins in a different order on different sites, or you might even use different sets of plugins. So to avoid such "surprises" you should always require the stuff you need explicity, or make sure something else requires it for you beforehand.

May the Source be with you!