config.php

From SkyPHP

Jump to: navigation, search

Each codebase has its own config.php.

This file where you should put any variables or arrays that your codebase needs. Most importantly, this is where to put your database connection settings.

All config files from all codebases are included at runtime (see index.php). This allows for cascading config values. For example, set a variable in your config.php to override a default value from skyphp's config.php.

Do not put logic or scripting in your config.php. (see run-first.php)

Example config.php

$db_platform = 'postgres8';
$db_domain = 'localhost';
$db_name = 'xyz_db';
$db_username = 'xyz';
$db_password = 'xxxxx';

$svn_config = array(

);

$facebook_config = array(

);

Default config.php (skyphp codebase)


Personal tools