Aspen:Configurations
From Aspen Documentation
The following is a list of all available configuration parameters that you may use in your application or user configuration files. The configuration settings on this page are used by the framework and should not be removed.
In the list below, we list config key Default Value and a description.
application_nameAspen Framework- Defines the name of your website or application. This is currently used in error reporting and default templates.
application_guid8266f8e0-204d-11dd-bd0b-0800200c9a66- A unique identification key for your application. Provided by default is the aspen application key, but we strongly recommend generating your own.
application_version1.0.0 Beta 2- The version you want to assign to your website or application.
application_url'- The web address to your root installation. This is auto-detected if this setting is left false.
db_usernameroot- Database access username.
db_password'- Database access password.
db_databaseaspen_framework- Database name.
db_hostnamelocalhost- Database access hostname. Usually, this will be "localhost".
db_extensionmysql- Database type. Currently, Aspen only supports MySQL.
enable_languages1- Enables the support for language files.
languageen_US- The default language file to be loaded.
enable_mod_rewrite1- Enables clean urls using mod_rewrite within your application.
default_moduleIndex_Admin- The name of the default module to load if none provided in the URL.
default_module_no_configInstall_Admin- The name of the default module to load if the system has not been installed. Installed will return false if user config is missing, database connection fails, or tables are not present.
default_methodview- Default class method "page" to load if none provided in URL.
force_https'- Force redirection to HTTPS if connection is at HTTP. Requires ports to be standard 80/443.
post_login_redirect1- Redirect user to originally requested URL after they login.
static_content_path'- Web address to static content like css, images, javascript. Useful if your content is being served from another server like Lighttpd or similar.
email_sendernoreply@yourdomain.com- Default address on outgoing email (you must use this config manually if adding new email functions).
email_sender_namenoreply@yourdomain.com- Default name on outgoing email (you must use this config manually if adding new email functions).
minimum_displayable_error1- PHP error level that must be encountered before displaying to user. Set to zero for none.
save_error_to_db1- Toggles saving php/system error messages to database.
send_error_emails'- Toggles sending error log to an email account.
error_email_recipientwebmaster@yourdomain.com- Error email recipient address.
error_email_sendererrors@yourdomain.com- Error email sender address.
error_email_sender_nameerrors@yourdomain.com- Error email sender name.
minimum_version_php5.1.0- Minimum version of PHP that is required. This version is merely informational. For version checks, update the value in the index.php file you're using for your application interface or system/loader.inc.php.
timezoneAmerica/Los_Angeles- Default timezone.
currency_format%n- Default currency format. More information.
currency_localeen_US- Default currency locale. More information.
custom_classes_directorycustom- Directory that custom classes may be found in. Directory is relative to root installation path.
require_form_token_auth'- Toggle requiring a form authentication token. This stores a token in the session which must be matched to a form on submit.
sml_message_html<p class="notice">%s</p>- The wrapping html for any messages displaying from the SML class.
form_error_wrapping_html<ul class="error">%s</ul>- Default wrapping html for any form errors displayed using the
printErrorsmethod.
form_error_line_html<li>%s</li>
- Default per-error wrapping html for any form errors displayed using the
printErrorsmethod.
html_purifier_settingsArray- An array of settings that are passed to the HTMLPurifier class.
watch_pending_db_upgrade'- If true, the system will watch the
modules/Install/sql/upgrade.sqlfile for any new sql queries with a build number greater than that in theupgrade_historytable.
mysql_field_group_intarray('tinyint', 'int', 'smallint', 'mediumint', 'bigint', 'float', 'double', 'decimal')- List of mysql field types that are grouped as integers. Used in the [[Aspen:Scaffold|Scaffold] class.
mysql_field_group_textarray('char', 'varchar', 'text', 'tinytext', 'mediumtext', 'longtext', 'tinyblob', 'blob', 'mediumblob', 'longblob')- List of mysql field types that are grouped as text. Used in the [[Aspen:Scaffold|Scaffold] class.
mysql_field_group_datearray('date', 'datetime', 'timestamp', 'time', 'year')- List of mysql field types that are grouped as date fields. Used in the [[Aspen:Scaffold|Scaffold] class.
allowed_file_extensionsarray('jpg', 'jpeg', 'png', 'gif')- File extensions that are allowed during upload.
enable_uploadsfalse- Toggle to allow files to be uploaded.
upload_server_pathuploads- Server path to an uploads folder.
upload_browser_pathfalse- Web address to upload folder. Automatically detected if set to false.
upload_max_file_size2000000- Maximum upload file size, in bytes.
enable_logging'- Enables system logging. Requires logging folder with proper permissions.
timestamp_log_file'- Whether or not log files are timestamped, so that each request is logged separately.
log_verbosity1- Level of data to log. If less than 1, no core system information is logged. Only system startup messages, and any user level messages.
log_dirlogs- Path to log directory.
enable_cache'- Enables cache class.
cache_template_output'- Toggles template output caching.
cache_dircache- Cache file directory.
load_add_core_classArray- System classes that are to be loaded at startup. Only the core framework are listed here. To load additional or to load custom classes, set those settings in your config.