Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Commit

Permalink
Config updates for CI 3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mwhitneysdsu committed Aug 10, 2015
1 parent c49e238 commit 10cba78
Show file tree
Hide file tree
Showing 13 changed files with 203 additions and 180 deletions.
15 changes: 7 additions & 8 deletions application/config/application.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
* Bonfire
*
* An open source project to allow developers to jumpstart their development of
* CodeIgniter applications
* CodeIgniter applications.
*
* @package Bonfire
* @author Bonfire Dev Team
* @copyright Copyright (c) 2011 - 2014, Bonfire Dev Team
* @copyright Copyright (c) 2011 - 2015, Bonfire Dev Team
* @license http://opensource.org/licenses/MIT The MIT License
* @link http://cibonfire.com
* @since Version 1.0
Expand All @@ -19,16 +19,15 @@
*/
$config['site.default_user_timezone'] = 'UM8';

//--------------------------------------------------------------------
//------------------------------------------------------------------------------
// Module Locations
//--------------------------------------------------------------------
// These paths are checked in the order listed whenever a module is
// attempting to be located, whether it's loading a library, helper,
// or routes file.
//------------------------------------------------------------------------------
// These paths are checked in the order listed when attempting to locate a module,
// whether loading a library, helper, or routes file.
//
$config['modules_locations'] = array(
realpath(APPPATH) . '/modules/' => '../../application/modules/',
realpath(APPPATH . '../bonfire') . '/modules/' => '../../bonfire/modules/',
realpath(BFPATH) . '/modules/' => '../../bonfire/modules/',
);

//------------------------------------------------------------------------------
Expand Down
21 changes: 8 additions & 13 deletions application/config/autoload.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
defined('BASEPATH') || exit('No direct script access allowed');
defined('BASEPATH') OR exit('No direct script access allowed');

/*
| -------------------------------------------------------------------
Expand Down Expand Up @@ -39,7 +39,6 @@
| $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');
|
*/

$autoload['packages'] = array(
realpath(APPPATH .'../bonfire'), // Bonfire Core
APPPATH . 'third_party', // App -specific 3rd-party libs.
Expand All @@ -49,8 +48,9 @@
| -------------------------------------------------------------------
| Auto-load Libraries
| -------------------------------------------------------------------
| These are the classes located in the system/libraries folder
| or in your application/libraries folder.
| These are the classes located in system/libraries/ or your
| application/libraries/ directory, with the addition of the
| 'database' library, which is somewhat of a special case.
|
| Prototype:
|
Expand All @@ -61,23 +61,22 @@
|
| $autoload['libraries'] = array('user_agent' => 'ua');
*/

$autoload['libraries'] = array('database');


/*
| -------------------------------------------------------------------
| Auto-load Drivers
| -------------------------------------------------------------------
| These classes are located in the system/libraries folder or in your
| application/libraries folder within their own subdirectory. They
| These classes are located in system/libraries/ or in your
| application/libraries/ directory, but are also placed inside their
| own subdirectory and they extend the CI_Driver_Library class. They
| offer multiple interchangeable driver options.
|
| Prototype:
|
| $autoload['drivers'] = array('cache');
*/

$autoload['drivers'] = array();

/*
Expand All @@ -88,7 +87,6 @@
|
| $autoload['helper'] = array('url', 'file');
*/

$autoload['helper'] = array('url', 'language');

/*
Expand All @@ -103,7 +101,6 @@
| config files. Otherwise, leave it blank.
|
*/

$autoload['config'] = array('application');

/*
Expand All @@ -118,7 +115,6 @@
| "codeigniter_lang.php" would be referenced as array('codeigniter');
|
*/

$autoload['language'] = array();

/*
Expand All @@ -127,12 +123,11 @@
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['model'] = array('model1', 'model2');
| $autoload['model'] = array('first_model', 'second_model');
|
| You can also supply an alternative model name to be assigned
| in the controller:
|
| $autoload['model'] = array('first_model' => 'first');
*/

$autoload['model'] = array();
46 changes: 28 additions & 18 deletions application/config/config.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
defined('BASEPATH') || exit('No direct script access allowed');
defined('BASEPATH') OR exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -37,15 +37,16 @@
|--------------------------------------------------------------------------
|
| This item determines which server global should be used to retrieve the
| URI string. The default setting of 'AUTO' works for most servers.
| URI string. The default setting of 'REQUEST_URI' works for most servers.
| If your links do not seem to work, try one of the other delicious flavors:
|
| 'AUTO' Default - auto detects
| 'AUTO' auto detects
| 'CLI' or 'argv' Uses $_SERVER['argv'] (for php-cli only) // CI3
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
|
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
*/
$config['uri_protocol'] = 'AUTO';

Expand Down Expand Up @@ -192,8 +193,6 @@
| Error Logging Threshold
|--------------------------------------------------------------------------
|
| If you have enabled error logging, you can set an error threshold to
| determine what gets logged. Threshold options are:
| You can enable error logging by setting a threshold over zero. The
| threshold determines what gets logged. Threshold options are:
|
Expand All @@ -203,7 +202,7 @@
| 3 = Informational Messages
| 4 = All Messages
|
| You can also pass in a array with threshold levels to show individual error types
| You can also pass an array with threshold levels to show individual error types
|
| array(2) = Debug Messages, without Error Messages
|
Expand Down Expand Up @@ -272,7 +271,6 @@
*/
$config['error_views_path'] = '';


/*
|--------------------------------------------------------------------------
| Cache Directory Path
Expand All @@ -289,8 +287,15 @@
| Cache Include Query String (CI3)
|--------------------------------------------------------------------------
|
| Set this to TRUE if you want to use different cache files depending on the
| URL query string. Please be aware this might result in numerous cache files.
| Whether to take the URL query string into consideration when generating
| output cache files. Valid options are:
|
| FALSE = Disabled
| TRUE = Enabled, take all query parameters into account.
| Please be aware that this may result in numerous cache
| files generated for the same page over and over again.
| array('q') = Enabled, but only take into account the specified list
| of query parameters.
|
*/
$config['cache_query_string'] = false;
Expand All @@ -309,9 +314,9 @@
$config['encryption_key'] = "58f62e7a5c072527eb00fad7ccb6f547";

/*
|------------------------------------------------------------------------------
|--------------------------------------------------------------------------
| Session Variables
|------------------------------------------------------------------------------
|--------------------------------------------------------------------------
| (CI2)
| 'sess_cookie_name' = the name you want for the cookie
| 'sess_expiration' = the number of SECONDS you want the session to last.
Expand Down Expand Up @@ -342,7 +347,7 @@
|
| 'sess_save_path'
|
| The location to save sessions to, driver dependant.
| The location to save sessions to, driver dependent.
|
| For the 'files' driver, it's a path to a writable directory.
| WARNING: Only absolute paths are supported!
Expand All @@ -352,6 +357,10 @@
|
| IMPORTANT: You are REQUIRED to set a valid save path!
|
| Bonfire note: If you use a different database table name in 'sess_save_path', update
| /bonfire/migrations/043_Add_ci3_sessions.php
| accordingly or create the table manually.
|
| 'sess_match_ip'
|
| Whether to match the user's IP address when reading the session data.
Expand Down Expand Up @@ -386,10 +395,6 @@
// CI 3 Session Variables
$config['sess_driver'] = 'database';
$config['sess_regenerate_destroy'] = false;

// If you use a different database table name, update
// /bonfire/migrations/043_Add_ci3_sessions.php
// accordingly or create the table manually.
$config['sess_save_path'] = 'ci3_sessions';

/*
Expand Down Expand Up @@ -419,7 +424,7 @@
|--------------------------------------------------------------------------
|
| Determines whether to standardize newline characters in input data,
| meaning to replace \r\n, \r, \n occurences with the PHP_EOL value.
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
| This is particularly useful for portability between UNIX-based OSes,
| (usually \n) and Windows (\r\n).
Expand All @@ -434,6 +439,9 @@
|
| Determines whether the XSS filter is always active when GET, POST or
| COOKIE data is encountered
|
| WARNING: This feature is DEPRECATED in CI3 and currently available only
| for backwards compatibility purposes!
|
*/
$config['global_xss_filtering'] = false;
Expand Down Expand Up @@ -502,6 +510,8 @@
| If your PHP installation does not have short tag support enabled CI
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
| in your view files. Options are TRUE or FALSE (boolean)
|
| Note: You need to have eval() enabled for this to work.
|
*/
$config['rewrite_short_tags'] = false;
Expand Down
4 changes: 2 additions & 2 deletions application/config/constants.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
defined('BASEPATH') || exit('No direct script access allowed');
defined('BASEPATH') OR exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -27,7 +27,6 @@
| These modes are used when working with fopen()/popen()
|
*/

define('FOPEN_READ', 'rb');
define('FOPEN_READ_WRITE', 'r+b');
define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
Expand All @@ -53,6 +52,7 @@
|
*/
define('SHOW_DEBUG_BACKTRACE', true);

/*
|--------------------------------------------------------------------------
| Exit Status Codes
Expand Down
3 changes: 1 addition & 2 deletions application/config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
$query_builder = true;
$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost',
'hostname' => '127.0.0.1',
'username' => '',
'password' => '',
'database' => '',
Expand All @@ -107,7 +107,6 @@
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'autoinit' => true,
'encrypt' => false,
'compress' => false,
'stricton' => true,
Expand Down
2 changes: 1 addition & 1 deletion application/config/events.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
<?php defined('BASEPATH') || exit('No direct script access allowed');
/*
Copyright (c) 2011 Lonnie Ezell
Expand Down
1 change: 1 addition & 0 deletions application/config/foreign_chars.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
'/ś|ŝ|ş|ș|š|ſ|σ|ς|с/' => 's',
'/Ț|Ţ|Ť|Ŧ|τ|Т/' => 'T',
'/ț|ţ|ť|ŧ|т/' => 't',
'/Þ|þ/' => 'th',
'/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ|Ũ|Ủ|Ụ|Ừ|Ứ|Ữ|Ử|Ự|У/' => 'U',
'/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ|υ|ύ|ϋ|ủ|ụ|ừ|ứ|ữ|ử|ự|у/' => 'u',
'/Ý|Ÿ|Ŷ|Υ|Ύ|Ϋ|Ỳ|Ỹ|Ỷ|Ỵ|Й/' => 'Y',
Expand Down
28 changes: 14 additions & 14 deletions application/config/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
* Define "hooks" to extend CI without hacking the core files. Please see the
* user guide for info:
*
* @link https://ellislab.com/codeigniter/user-guide/general/hooks.html
* @link http://www.codeigniter.com/user_guide/general/hooks.html
*/

// Store the requested URL, which will sometimes be different from previous URL.
$hook['pre_controller'][] = array(
'class' => 'App_hooks',
'class' => 'App_hooks',
'function' => 'saveRequested',
'filename' => 'App_hooks.php',
'filepath' => 'hooks',
'params' => ''
'filename' => 'App_hooks.php',
'filepath' => 'hooks',
'params' => ''
);

// Check whether the Composer Autoloader should be used.
Expand All @@ -26,20 +26,20 @@

// Allow performance of good redirects to previous pages.
$hook['post_controller'][] = array(
'class' => 'App_hooks',
'class' => 'App_hooks',
'function' => 'prepRedirect',
'filename' => 'App_hooks.php',
'filepath' => 'hooks',
'params' => ''
'filename' => 'App_hooks.php',
'filepath' => 'hooks',
'params' => ''
);

// Check whether the site is in maintenance mode.
$hook['post_controller_constructor'][] = array(
'class' => 'App_hooks',
'class' => 'App_hooks',
'function' => 'checkSiteStatus',
'filename' => 'App_hooks.php',
'filepath' => 'hooks',
'params' => ''
'filename' => 'App_hooks.php',
'filepath' => 'hooks',
'params' => ''
);

/* End of file /application/config/hooks.php */
6 changes: 3 additions & 3 deletions application/config/migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
| Migration file names may be based on a sequential identifier or on
| a timestamp. Options are:
|
| 'sequential' = Default migration naming (001_add_blog.php)
| 'sequential' = Sequential migration naming (001_add_blog.php)
| 'timestamp' = Timestamp migration naming (20121031104401_add_blog.php)
| Use timestamp format YYYYMMDDHHIISS.
|
| If this configuration value is missing the Migration library defaults
| to 'sequential' for backward compatibility.
| Note: If this configuration value is missing the Migration library
| defaults to 'sequential' for backward compatibility with CI2.
|
*/
$config['migration_type'] = 'timestamp';
Expand Down
Loading

0 comments on commit 10cba78

Please sign in to comment.