Horde::applicationUrl() uses the registry information in order
to generate urls to your application correctly. It does this with the
getWebRoot() method:
<?php echo $registry->getWebRoot(); ?>
Other parts of the registry sometimes need to include files from
your application. The getFileRoot() method returns that
information:
<?php echo $registry->getFileRoot(); ?>
Because all of this data is stored in a central place, the
Registry system can take care of a lot of things - including
configuration files, for instance - for you, and it also means that
your application doesn't depend on the location of other applications
that it wants to talk to.
|