ReferenceDefinesAll the definitions below are set in file
config/environment.php
- DEBUG
boolean set to true if TRAX_MODE is 'development',
false otherwise. Determines whether PHP error messages should be
sent to the browser; true means show error messages on the
browser as well as the error log, false means send error messages
to only the error log. Implemented by calling
ini_set()
at the time DEBUG is defined.
- PHP_LIB_ROOT
Directory containing PHP libraries. This directory
will be added to the PHP
include path.
- TRAX_LIB_ROOT
Directory containing Trax libraries. Set to a
subdirectory of TRAX_ROOT or PHP_LIB_ROOT and added to the PHP
include path.
- TRAX_MODE
Contains one of 'test', 'development' or 'production'.
Determines which database to use.
Get it from $_SERVER['TRAX_MODE'] if that exists
- TRAX_PUBLIC
Subdirectory of the user's home directory referenced
by the Apache configuration variable UserDir .
- TRAX_ROOT
Filesystem path to the top of the Trax file tree.
- TRAX_URL_PREFIX
That part of a URL which refers to a Trax
application that comes after the domain name and before the
controller. Usually empty. In the case of a Trax application in
the home directory of user username ,
TRAX_URL_PREFIX would be set to
'~username '.
- TRAX_VIEWS_EXTENTION
File extension for views, default
'phtml'.
Globals- $GLOBALS['ACTIVE_RECORD_DB']
- $GLOBALS['ACTIVE_RECORD_SQL_LOG']
An array which contains a log of SQL queries sent to
the DBMS, one query per element. Created only when TRAX_MODE is
'development'. Written in ActiveRecord::log_query().
- $GLOBALS['COUNTRIES']
- $GLOBALS['current_action_name']
Name of action parsed from the URL.
Set in ActionController::process_route()
Value stored before knowing whether the method for this action
actually exists in the relevant controller.
- $GLOBALS['current_controller_name']
Name of the controller as parsed from the URL. The name is in
lower case without the "_controller" suffix.
Set in ActionController::process_route(). Not set until
the controller PHP file has been opened and the controller object
created successfully.
- $GLOBALS['current_controller_object']
- $GLOBALS['current_controller_path']
Controller URL path below TRAX_URL_PREFIX.
Set in ActionController::process_route(). Not set until
the controller PHP file has been opened and the controller object
created successfully.
- $GLOBALS['DEFAULT_DATE_OPTIONS']
- $GLOBALS['DEFAULT_FIELD_OPTIONS']
- $GLOBALS['DEFAULT_RADIO_OPTIONS']
- $GLOBALS['DEFAULT_TEXT_AREA_OPTIONS']
- $GLOBALS['JAVASCRIPT_DEFAULT_SOURCES']
- $GLOBALS['TRAX_DB_SETTINGS']
Array with keys 'test', 'development' and 'production' specifying
the database connection parameters for each of the three modes of
operation.
Set in file config/environment.php
from values parsed from file database.ini.
Used when opening a connection to the database.
- $GLOBALS['TRAX_INCLUDES']
Array with keys "models", "views", "controllers",
"helpers", "layouts", "config", "environments", "lib", "app",
"log" and "vendor". Values are the subdirectories of
TRAX_ROOT where Trax files of the
corresponding category are stored. Used to create filesystem
paths to access Trax files.
Set in file config/environment.php
Prev |
Up |
Next |
Troubleshooting |
PHP On Trax |
ActiveRecordHelper |
|
|