-
Notifications
You must be signed in to change notification settings - Fork 0
Configure
The /config directory has predefined variables that help the system know how to handle your application. They are separated into the following files.
- autoload.php
- cache.php
- database.php
- language.php
- paths.php
- template.php
The autoload.php file contains variables that will be called every time your application.
debug - Debug if set to true, will print the error to the screen if one occurs. If it is set to false, no errors will be displayed.
dev_mode - Dev Mode (development mode) allows you to write parts of code to test when you are developing. Once you push your live code, you can set dev_mode to false which will not run the test code.
database - If true the system will try to connect to your database by using the information in the database.php file.
timezone - The timezone you want to use.
logs - Do you want logs to be written. If true all errors thrown will be logged along with any custom logs.
This cache.php file tells how to handle our caches.
language_cache - Do you want to cache language files. If true, new language values will not work until cache updates. Setting this to false is recommended until release.
language_ttl - Time for the cache to live.
template_caching - If true all templates will be cached by using Smarty's built in caching.
template_ttl - Time for the template cache to live.
general_cache - Allows you to cache general PHP statements. Useful if you are not using a template.
general_ttl - Time for general caches to live.