Skip to content

Commit 30dbf66

Browse files
authored
Merge pull request #2162 from MGatner/common-docs
User Guide updates for Common.php
2 parents 960310f + 6216e81 commit 30dbf66

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
**************************
2+
Replacing Common Functions
3+
**************************
4+
5+
There are quite a few functions necessary to CodeIgniter that need to be loaded early for use in the core classes and
6+
thus cannot be placed into a helper. While most users will never have any need to do this, but the option to replace
7+
these functions does exist for those who would like to significantly alter the CodeIgniter core. In the ``App\``
8+
directory there is a file ``Common.php``, and any functions defined in there will take precedence over the versions
9+
found in ``system/Common.php``. This is also an opportunity to create globally-available functions you intend to
10+
use throughout the framework.
11+
12+
.. note:: Messing with a core system class has a lot of implications, so make sure you know what you are doing before
13+
attempting it.

user_guide_src/source/extending/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ CodeIgniter 4 has been designed to be easy to extend or build upon.
88
:titlesonly:
99

1010
core_classes
11+
common
1112
events
1213
basecontroller
1314
contributing

0 commit comments

Comments
 (0)