Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions app/Common.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php
/**
* This is a file that holds common functions that are loaded during the
* bootstrap process. The goal of this file is to allow developers the
* ability to overwrite core functions (EG: config()) and use their own
* functions instead.
*
* @link https://link/to/docs/page.html
*/
6 changes: 6 additions & 0 deletions system/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@
require_once APPPATH . 'Config/Constants.php';
}

// Let's see if an app/Common.php file exists ...
if (file_exists(APPPATH . 'Common.php')) {
// If it does, let's load it
require_once APPPATH . 'Common.php`;';
}

require_once SYSTEMPATH . 'Common.php';

/*
Expand Down