Skip to content
ImranCS edited this page Oct 28, 2012 · 1 revision

These are added to the $settings in app/config.php

DB Connection Details

config_db($host, $uname, $pwd, $dbname, $environment = null) If using environment, it should have already been set in the $db array before calling this method. If the environment doesnt match the current one, it wont be configured.

site_name, site_copy, site_title etc

This is used by the default template to print the title / copyright message etc. It makes use of the site_info method defined in inc/view.php

template

This tells what subfolder of app/templates/ to look for header.php and footer.php (when !ajax)

singlemodule

This tells whether the controller (actions.php) uses

  • a single module - /foo/bar calls foo('bar')
  • or the crud approach where /foo/bar/xyz calls foo_bar('xyz')

bucketaction

This tells what the default action is when the one from the url is not found. For example, using a pages action that puts out html files.

includes

This is an array that tells what files from app to load. Think of it like an autoloader for app functions / classes.

custom settings

any other key may be set in the settings array.