Skip to content

Commit 2a99bdf

Browse files
committed
docs: improve docs
1 parent 11613d6 commit 2a99bdf

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

user_guide_src/source/general/environments.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ By default, CodeIgniter has three environments defined.
3030
If you want another environment, e.g., for staging, you can add custom environments.
3131
See `Adding Environments`_.
3232

33+
.. _setting-environment:
34+
3335
*******************
3436
Setting Environment
3537
*******************

user_guide_src/source/general/errors.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,12 @@ Error Reporting
4949
---------------
5050

5151
By default, CodeIgniter will display a detailed error report with all errors in the ``development`` and ``testing`` environments, and will not
52-
display any errors in the ``production`` environment. You can change this by setting the ``CI_ENVIRONMENT`` variable
53-
in the :ref:`.env <dotenv-file>` file.
52+
display any errors in the ``production`` environment.
53+
54+
.. image:: ../images/error.png
55+
56+
You can change your environment by setting the ``CI_ENVIRONMENT`` variable.
57+
See :ref:`setting-environment`.
5458

5559
.. important:: Disabling error reporting DOES NOT stop logs from being written if there are errors.
5660

0 commit comments

Comments
 (0)