Back
Nag base.php
Nag Constants
Registry Instantiation
Forward


We first define a few constants to make life easier:

<?php

// Find the base file path of Horde
@define('HORDE_BASE'dirname(__FILE__) . '/../..');

// Find the base file path of Nag
@define('NAG_BASE'dirname(__FILE__) . '/..');

?>

  • HORDE_BASE always points to the Horde installation on the filesystem.
  • NAG_BASE points to where Nag lives (or, FOO_BASE for your application.
  • By using these constants, we ensure that external code can include our scripts and all pathnames will continue to work.