[dev] Create different hooks for different vhosts

Jan Schneider jan at horde.org
Tue May 17 08:02:43 UTC 2011


Zitat von Gonçalo Queirós <goncalo.queiros at portugalmail.net>:

> On 05/13/2011 09:27 PM, Jan Schneider wrote:
>>
>> Zitat von Gonçalo Queirós <goncalo.queiros at portugalmail.net>:
>>
>>> Is it possible to create different hooks for different vhosts?
>>>
>>> The only way i see to do this is to make hooks.php an empty file and
>>> then have every hooks-vhosts.php file to have the complete definition of
>>> the hooks class..
>>
>> Why don't you use $_SERVER['SERVER_NAME'] right in your hook code?
>>
>> Jan.
>>
>
> Or that..just wondering if there were any way like prefs or confs ;)

No, because hooks.php contains a class a not a hash, so it can't be  
loaded multiple times.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the dev mailing list