The Sado library configuration file is "lib/Sado/sado.conf.php". The configuration file contains an array of configuration settings. The configuration file is located in:
lib/Sado/sado.conf.phpBelow is a list of the configuration settings and what they are used for.
debug (bool)
This is a boolean flag used to turn debugging on/off. Debugging turns logging on. By default this is set to true.
display_errors (bool)
This boolean flag turns display errors errors on/off. If display errors is turned on and an errors is encountered it will be displayed. If display errors is turned off the error will be suppressed, if logging is turned on the error will be logged. By default this is set to true.
dump_log (bool)
This boolean flag controls the option to display the Sado log at the end of execution. This can be very helpful during development and debugging. By default this is set to true.
file_lib_ext (string)
The file extension used for all the Sado library files. By default this is set to '.php'.
form_default_class (string)
The CSS class used for the Sado form created by the SadoForm object. The default value is set to NULL, which means no class.
form_field_default_class_button (string)
The CSS class used for all buttons used in Sado forms. The default value is set to NULL, which means no class.
form_field_default_class_file (string)
The CSS class used for all file fields used in Sado forms. The default value is set to NULL, which means no class.
form_field_default_class_label (string)
The CSS class used for all label tags used in Sado forms. The default value is set to NULL, which means no class.
form_field_default_class_password (string)
The CSS class used for all password fields used in Sado forms. The default value is set to NULL, which means no class.
form_field_default_class_radio (string)
The CSS class used for all radio buttons used in Sado forms. The default value is set to NULL, which means no class.
form_field_default_class_select (string)
The CSS class used for all select fields used in Sado forms. The default value is set to NULL, which means no class.
form_field_default_class_submit (string)
The CSS class used for all submit buttons used in Sado forms. The default value is set to NULL, which means no class.
form_field_default_class_text (string)
The CSS class used for all text fields used in Sado forms. The default value is set to NULL, which means no class.
form_field_default_class_textarea (string)
The CSS class used for all textarea fields used in Sado forms. The default value is set to NULL, which means no class.
form_field_validator_wrapper_open (string)
The wrapper used for all validation errors used in Sado forms, this is the open tag, for example:
'form_field_validator_wrapper_open' => '<div class="form_error">'The default value is set to '', which means no class.
form_field_validator_wrapper_close (string)
The wrapper used for all validation errors used in Sado forms, this is the close tag, for example:
'form_field_validator_wrapper_close' => '</div>' The default value is set to '', which means no class.
form_field_value_auto_trim (bool)
When set to true this will allow auto trimming of white spaces around field values when they are posted. This can be helpful when validating end-user data when only white spaces are entered. The default value is set to true.
form_field_wrapper_open (string)
The wrapper used for fields in Sado forms, this is the open tag, for example:
'form_field_wrapper_open' => '<div class="form_field">'The default value is set to '', which means no class.
form_field_wrapper_close (string)
The wrapper used for fields in Sado forms, this is the close tag, for example:
'form_field_wrapper_close' => '</div>'The default value is set to '', which means no class.
form_id_field_name (string)
The field name used for fields that store form IDs for all Sado forms. By default this is set to 'sado_form_id'.
grid_default_class (string)
The CSS class used for all grids/tables used in Sado grids. The default value is set to NULL, which means no class.
html_eof_line (string)
The string used for end of line in HTML (different from line break). By default this is set to PHP_EOL.
pagination_get_page_var (string)
This is the name for the GET/query string variable used to hold the current page location. By default this is set to 'pg'.
pagination_records_per_page (int)
This is max number of records displayed per page when using pagination. By default this is set to 20.
udf_error_handler (string|array)
This setting is used to set a User Defined Error Handler. This can be a single function (string) or a class and method (array), here is an example of single function error handler:
'udf_error_handler' => 'myErrHandFunc'Or with class and method:
'udf_error_handler' => array('ErrorClass', 'handleErrMethod') By default this is set to '' (none).
udf_log_handler (string|array)
This setting is used to set a User Defined Log Handler. This can be a single function (string) or a class and method (array), here is an example of single function log handler:
'udf_log_handler' => 'myLogHandFunc'Or with class and method:
'udf_log_handler' => array('LoggingClass', 'handleLogMethod') By default this is set to '' (none).
view_default_class (string)
The CSS class used for the Sado view created by the SadoView object. The default value is set to NULL, which means no class.
view_label_default_class (string)
The CSS class used for the Sado view labels created by the SadoView object. The default value is set to NULL, which means no class.