You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user_guide_src/source/extending/events.rst
+11-1
Original file line number
Diff line number
Diff line change
@@ -87,14 +87,24 @@ You can stop simulation by passing false:
87
87
Event Points
88
88
============
89
89
90
-
The following is a list of available event points within the CodeIgniter core code:
90
+
For Web Apps
91
+
------------
92
+
93
+
The following is a list of available event points for web applications that are
94
+
invoked by **public/index.php**:
91
95
92
96
* **pre_system** Called early during system execution. The URI, Request, and
93
97
Response have been instantiated, but page cache checking, routing, and execution
94
98
of "before" controller filters have not yet occurred.
95
99
* **post_controller_constructor** Called immediately after your controller is instantiated, but prior to any method calls happening.
96
100
* **post_system** Called right before the final rendered page is sent to the browser,
97
101
at the end of system execution, after the execution of "after" controller filters.
102
+
103
+
Others
104
+
------
105
+
106
+
The following is a list of event points available for each of the libraries:
107
+
98
108
* **email** Called after an email sent successfully from ``CodeIgniter\Email\Email``. Receives an array of the ``Email`` class's properties as a parameter.
99
109
* **DBQuery** Called after a database query whether successful or not. Receives the ``Query`` object.
100
110
* **migrate** Called after a successful migration call to ``latest()`` or ``regress()``. Receives the current properties of ``MigrationRunner`` as well as the name of the method.
0 commit comments