[chora] about chora having to be in horde directory

Chuck Hagenbuch chuck at horde.org
Mon Feb 17 11:56:28 PST 2003


Quoting greg_greg at freestart.hu:

> I was wondering why chora *had* to be in a subdir of horde?

It does not.

> In chora/lib/base.php (1.66.2.6 2002/12/19 12:24:08 jan )
> I see:
> // Find the base file path of Horde
> @define('HORDE_BASE', dirname(__FILE__) . '/../..');
> 
> Why is this not using the path defined in horde/config/registry? One

Because then how would Chora find Horde?

> could say that to use the path defined in there, it has to know where to
> find them... Hmmm that would make sense, but then why are they defined in
> the registry (for horde itself, i mean) ? ;)

Because Horde has to be able to find other applications, also. How do you
think IMP finds Turba to search for addresses? Without hardcoding
information in more places than necessary, Horde has to know where the apps
are, and each app has to know where Horde is.

-chuck

--
Charles Hagenbuch, <chuck at horde.org>
must ... find ... acorns ... *thud*


More information about the chora mailing list