Source for file boot.php
Documentation is available at boot.php
* Don't change this file. Configuration is done in
* config/environment.php and config/environments/*.php
# Determine Trax environment
# Sets environment from the Apache Vhost (SetEnv TRAX_ENV development)
# or change the string to manually set it. (development | test | production)
define('TRAX_ENV', $_SERVER['TRAX_ENV'] ? $_SERVER['TRAX_ENV'] : "development");
# Determine the path to this applications trax folder
define("TRAX_ROOT", dirname(dirname(__FILE__ )));
# Determine where your system php libs path
$php_dir = trim(exec('pear config-get php_dir'));
define('PHP_LIB_ROOT', $php_dir);
define('PHP_LIB_ROOT', '/usr/local/lib/php');
# Should we use local copy of the Trax libs in vendor/trax or
# the server Trax libs in the php libs dir defined in PHP_LIB_ROOT
define("TRAX_LIB_ROOT", TRAX_ROOT. "/vendor/trax");
define("TRAX_LIB_ROOT", PHP_LIB_ROOT. "/PHPonTrax/vendor/trax");
echo "Can't determine where your Trax Libs are located.";
# Set up Trax environment, framework, and default configuration
include_once(TRAX_LIB_ROOT. "/trax.php");
|