[dev] Re: [cvs] commit: horde/templates/help index.inc menu.inc
Anil Madhavapeddy
anil@recoil.org
Mon, 20 Nov 2000 14:28:56 +0000
Quoting Chuck Hagenbuch <chuck@horde.org>:
> Quoting Anil Madhavapeddy <anil@recoil.org>:
>
> > Incidentally, is there any way at the moment of forming
> > a URL to the Horde root-URL without having to manually
> > create it?
>
> well, we should have $conf['horde']['paths']['root'], but there isn't a
> function that automatically looks there, if that's what you're asking.
Yeah - just thought while hunting those references out that
it would be neater to wrap them around a library call.
>
> ... The problem with constants is that it's much harder to handle things
> dynamically - either Horde would need a hardcoded list of module constants
> (bad for anyone distributing a module outside Horde, or integrating
> something locally), or you have to figure out how to make sure
> that Horde::url() can always know about the constants that are
> available... Ie, if you're in Turba, how do you make sure you
> know about the constants for IMP?
Good point ... how about just a wrapper function then? I.e., form
the URL pointing to the horde-root, and run it through Horde::URL
to take care of entities and other special cases (if any turn up)
Horde::rootURL() or some suchlike.
--
Anil Madhavapeddy, <anil@recoil.org>