Exemplo n.º 1
0
 * Should we use the library log4php to do message logging?
 * By setting this constant to false, the developer will drop all dependencies to the library log4php
 * but he has then to fully implement it's own logging system if he needs one.
 * By setting this constant to false, be also aware that:
 * <ul>
 * <li>class \PHPYAM\libs\LoggerUtils will become useless
 * <li>router fatal errors (in the \PHPYAM\core\Core class) will be outputted to an error page, but there will be no additional logging
 * </ul>
 *
 * By default, USE_LOG4PHP is set to true.
 *
 * @var boolean
 */
define('USE_LOG4PHP', true);
if (USE_LOG4PHP) {
    \PHPYAM\libs\LoggerUtils::configure(__DIR__ . '/log4php-development.xml');
}
/**
 * URL to this application base directory.<br />
 * Note: the value of URL will always be ended by a "/".
 * Note 2: The environment variable REDIRECT_HTTP_YAM_REWRITEBASE
 * is defined in the htaccess file. If you don't use htaccess files,
 * you have to manually set the value of URL.<br />
 * For example: <code>define('URL', '/path/to/the/appbasedir/');</code>
 *
 * @var string
 * @see the htaccess file
 */
define('URL', getenv('REDIRECT_HTTP_YAM_REWRITEBASE'));
/**
 * URL to this application "public" directory.<br />
Exemplo n.º 2
0
 * Should we use the library log4php to do message logging?
 * By setting this constant to false, the developer will drop all dependencies to the library log4php
 * but he has then to fully implement it's own logging system if he needs one.
 * By setting this constant to false, be also aware that:
 * <ul>
 * <li>class \PHPYAM\libs\LoggerUtils will become useless
 * <li>router fatal errors (in the \PHPYAM\core\Core class) will be outputted to an error page, but there will be no additional logging
 * </ul>
 *
 * By default, USE_LOG4PHP is set to true.
 *
 * @var boolean
 */
define('USE_LOG4PHP', true);
if (USE_LOG4PHP) {
    \PHPYAM\libs\LoggerUtils::configure(__DIR__ . '/log4php-production.xml');
}
/**
 * URL to this application base directory.<br />
 * Note: the value of URL will always be ended by a "/".
 * Note 2: The environment variable REDIRECT_HTTP_YAM_REWRITEBASE
 * is defined in the htaccess file. If you don't use htaccess files,
 * you have to manually set the value of URL.<br />
 * For example: <code>define('URL', '/path/to/the/appbasedir/');</code>
 *
 * @var string
 * @see the htaccess file
 */
define('URL', getenv('REDIRECT_HTTP_YAM_REWRITEBASE'));
/**
 * URL to this application "public" directory.<br />