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
@@ -194,13 +188,17 @@ creates is the Pascal case version of the filename.
194
188
195
189
> php spark make:migration <class> [options]
196
190
197
-
You can use (make:migration) with the following options:
191
+
You can use (``make:migration``) with the following options:
192
+
193
+
- ``--namespace`` - Set root namespace. Default: ``APP_NAMESPACE``.
194
+
- ``--suffix`` - Append the component title to the class name.
195
+
196
+
The following options are also available to generate the migration file for
197
+
database sessions:
198
198
199
199
- ``--session`` - Generates the migration file for database sessions.
200
200
- ``--table`` - Table name to use for database sessions. Default: ``ci_sessions``.
201
201
- ``--dbgroup`` - Database group to use for database sessions. Default: ``default``.
202
-
- ``--namespace`` - Set root namespace. Default: ``APP_NAMESPACE``.
203
-
- ``--suffix`` - Append the component title to the class name.
204
202
205
203
*********************
206
204
Migration Preferences
@@ -229,7 +227,7 @@ Class Reference
229
227
:returns: An array of migration files
230
228
:rtype: array
231
229
232
-
An array of migration filenames are returned that are found in the **path** property.
230
+
An array of migration filenames are returned that are found in the ``path`` property.
233
231
234
232
.. php:method:: latest($group)
235
233
@@ -259,7 +257,7 @@ Class Reference
259
257
:returns: ``true`` on success, ``false`` on failure
260
258
:rtype: bool
261
259
262
-
This forces a single file to migrate regardless of order or batches. Method "up" or "down" is detected based on whether it has already been migrated.
260
+
This forces a single file to migrate regardless of order or batches. Method ``up()`` or ``down()`` is detected based on whether it has already been migrated.
263
261
264
262
.. note:: This method is recommended only for testing and could cause data consistency issues.
Copy file name to clipboardExpand all lines: user_guide_src/source/general/configuration.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,7 +122,7 @@ The loaded environment variables are accessed using any of the following:
122
122
123
123
.. literalinclude:: configuration/005.php
124
124
125
-
.. warning:: Note that your settings from the **.env** file are added to Environment Variables. As a side effect, this means that if your CodeIgniter application is (for example) generating a ``var_dump($_ENV)`` or ``phpinfo()`` (for debugging or other valid reasons) **your secure credentials are publicly exposed**.
125
+
.. warning:: Note that your settings from the **.env** file are added to ``$_SERVER`` and ``$_ENV``. As a side effect, this means that if your CodeIgniter application is (for example) generating a ``var_dump($_ENV)`` or ``phpinfo()`` (for debugging or other valid reasons), or a detailed error report in the ``development`` environment is shown, **your secure credentials are publicly exposed**.
Copy file name to clipboardExpand all lines: user_guide_src/source/general/errors.rst
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,11 @@ Error Handling
3
3
##############
4
4
5
5
CodeIgniter builds error reporting into your system through Exceptions, both the `SPL collection <https://www.php.net/manual/en/spl.exceptions.php>`_, as
6
-
well as a few custom exceptions that are provided by the framework. Depending on your environment's setup,
6
+
well as a few exceptions that are provided by the framework.
7
+
8
+
Depending on your environment's setup,
7
9
the default action when an error or exception is thrown is to display a detailed error report unless the application
8
-
is running under the ``production`` environment. In this case, a more generic message is displayed to
10
+
is running under the ``production`` environment. In the ``production`` environment, a more generic message is displayed to
9
11
keep the best user experience for your users.
10
12
11
13
.. contents::
@@ -43,12 +45,19 @@ the error handler to function as normal, you can throw a new exception within th
43
45
Configuration
44
46
=============
45
47
46
-
By default, CodeIgniter will display all errors in the ``development`` and ``testing`` environments, and will not
48
+
Error Reporting
49
+
---------------
50
+
51
+
By default, CodeIgniter will display a detailed error report with all errors in the ``development`` and ``testing`` environments, and will not
47
52
display any errors in the ``production`` environment. You can change this by setting the ``CI_ENVIRONMENT`` variable
48
-
in the **.env** file.
53
+
in the :ref:`.env<dotenv-file>` file.
49
54
50
55
.. important:: Disabling error reporting DOES NOT stop logs from being written if there are errors.
51
56
57
+
.. warning:: Note that your settings from the **.env** file are added to ``$_SERVER``
58
+
and ``$_ENV``. As a side effect, this means that if the detailed error report
59
+
is displayed, **your secure credentials are publicly exposed**.
0 commit comments