Skip to content
Jeff Johns edited this page Jan 31, 2014 · 2 revisions

This configuration file is used to hold default information that the application will use in all environments. Below is a list of configuration variables defined and what they are used for.

$config['error_codes']

This an array of error code and message that the application uses in conjuction with the data helper formatErrors to standardize error messages. The array is simple, key equals the error number and value equals the error message.

Sample

$config['error_codes'] = array();

// Marks - Level 1 - 29
$config['error_codes'][1] = 'Mark could not be archived.';
$config['error_codes'][2] = 'No marks found.';
$config['error_codes'][3] = 'Mark could not be updated.';
$config['error_codes'][4] = 'Mark with this id could not be found for this account.';
$config['error_codes'][5] = 'Mark could not be restored.';
$config['error_codes'][6] = 'Could not add mark.';

$config['new_account_links']

This config is an array of data that is used to add marks to a user's account when they first register. The key of the first array is the title then you define an array with a url and the alabel_id to apply to the mark for the user. The application will use this configuration to add all the links found here for the new user.

Sample

$config['new_account_links'] = array(
    'Read Nilai\'s FAQ' => array(
        'url'      => 'http://nilai.co/help/faq',
        'label_id' => '7'
    ),
    'How To Use Nilai'  => array(
        'url'      => 'http://nilai.co/help/how',
        'label_id' => '7'
    )
);