Skip to content

Commit a4534be

Browse files
committed
Merge branch 'develop' of git://github.com/jason-napolitano/CodeIgniter4 into jason-napolitano-develop
2 parents 7261a70 + 1abccce commit a4534be

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

app/Common.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
/**
4+
* Te goal of this file is to allow developers a location
5+
* where they can overwrite core procedural functions and
6+
* replace them with their own. This file is loaded during
7+
* the bootstrap process and is called during the frameworks
8+
* execution.
9+
*
10+
* This can be looked at as a `master helper` file that is
11+
* loaded early on, and may also contain additional functions
12+
* that you'd like to use throughout your entire application
13+
*
14+
* @link: https://codeigniter4.github.io/CodeIgniter4/
15+
*/

system/bootstrap.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@
9696
require_once APPPATH . 'Config/Constants.php';
9797
}
9898

99+
// Let's see if an app/Common.php file exists
100+
if ( file_exists(APPPATH . 'Common.php')) {
101+
// If it does, let's require it
102+
require_once APPPATH . 'Common.php';
103+
}
104+
105+
// Require system/Common.php
99106
require_once SYSTEMPATH . 'Common.php';
100107

101108
/*

0 commit comments

Comments
 (0)