Config File

The config file is located at settings/config.php and should be opened in a text editor to make changes. Below is a list of all settings included in this file.

URL Settings Regional Settings Advanced

Base Url

URL to your 68KB root. Typically this will be your base URL, WITH a trailing slash. Please note that we have included code to try and auto guess this but is not 100% foil proof.

$config['base_url'] = 'http://yoursite.com/';

Back to Top

Index File

Typically this will be your index.php file, unless you've renamed it to something else. If you are using mod_rewrite to remove the page set this variable so that it is blank.

$config['index_page'] = "index.php";

Back to Top

URL Suffix

This option allows you to add a suffix to all URLs generated.

$config['url_suffix'] = "";

For example, if a URL is this: example.com/index.php/category/my_cat you could optionally add a suffix, like .html, making the page appear to be of a certain type: example.com/index.php/category/my_cat.html

Back to Top

Language

This determines which set of language files should be used. Make sure there is an available translation if you intend to use something other than english.

$config['language'] = "english";

Please see Translate for more info.

Back to Top

Date Formatting

This is the default date formating. Check http://php.net/date for options.

$config['long_date_format'] = 'F j, Y H:i:s';
$config['short_date_format'] = 'Y-m-d h:i a';

Back to Top

Charset

This determines which character set is used by default in various methods that require a character set to be provided. It is not recommended to change this once you have data in your database.

$config['charset'] = "UTF-8";

Back to Top

Cache Path

This is the location where 68KB will store cached files if you enable caching. Full server path including trailing slash.

$config['cache_path'] = ROOTPATH .'cache/';

Back to Top

Encryption Key

If you use the Encryption class or the Sessions class with encryption enabled you MUST set an encryption key.

$config['encryption_key'] = "";

Please Note: If you are going to use this you must set it before people register on your site.

Back to Top

Allow Modules

By setting this to FALSE you can prevent all modules from working. This is useful if you are experiencing a problem and think it is caused by a module.

$config['modules_on'] = TRUE;

Please Note: Before reporting bugs please set this to FALSE to confirm the bug is part of the core.

Back to Top

Output Compression

Enables Gzip output compression for faster page loads. When enabled, the output class will test whether your server supports Gzip. Even if it does, however, not all browsers support compression so enable only if you are reasonably sure your visitors can handle it.

$config['compress_output'] = FALSE;

VERY IMPORTANT: If you are getting a blank page when compression is enabled it means you are prematurely outputting something to your browser. It could even be a line of whitespace at the end of one of your scripts. For compression to work, nothing can be sent before the output buffer is called by the output class. Do not "echo" any values with compression enabled.

Back to Top

Master Time Reference

Options are "local" or "gmt". This pref tells the system whether to use your server's local time as the master "now" reference, or convert it to GMT.

$config['time_reference'] = 'local';