Skip to content

Commit 441356a

Browse files
committed
docs: fix instructions of Helper upgrading from 3.x
1 parent 958f301 commit 441356a

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

user_guide_src/source/installation/upgrade_4xx.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,24 @@ Helpers
109109
=======
110110

111111
- Helpers are pretty much the same as before, though some have been simplified.
112+
- Some helpers from CodeIgniter 3 no longer exists in Version 4. For all these
113+
helpers, you have to find a new way to implement your functions. These
114+
helpers are `CAPTCHA Helper <https://www.codeigniter.com/userguide3/helpers/captcha_helper.html>`_,
115+
`Email Helper <https://www.codeigniter.com/userguide3/helpers/email_helper.html>`_.
116+
`Path Helper <https://www.codeigniter.com/userguide3/helpers/path_helper.html>`_.
117+
and `Smiley Helper <https://www.codeigniter.com/userguide3/helpers/smiley_helper.html>`_.
118+
- `Download Helper <https://www.codeigniter.com/userguide3/helpers/download_helper.html>`_
119+
in CI3 was removed. You need to use Response object where you are using ``force_download()``.
120+
See :ref:`force-file-download`.
121+
- `Language Helper <https://www.codeigniter.com/userguide3/helpers/language_helper.html>`_
122+
in CI3 was removed. But ``lang()`` is always available in CI4. See :php:func:`lang()`.
123+
- `Typography Helper <https://www.codeigniter.com/userguide3/helpers/typography_helper.html>`_
124+
in CI3 wll be :doc:`Typography Library <../libraries/typography>` in CI4.
125+
- `Directory Helper <https://www.codeigniter.com/userguide3/helpers/directory_helper.html>`_
126+
and `File Helper <https://www.codeigniter.com/userguide3/helpers/file_helper.html>`_ in CI3
127+
will be :doc:`../helpers/filesystem_helper` in CI4.
128+
- `String Helper <https://www.codeigniter.com/userguide3/helpers/string_helper.html>`_ functions
129+
in CI3 are included in :doc:`../helpers/text_helper` in CI4.
112130
- In CI4, ``redirect()`` returns a ``RedirectResponse`` instance instead of redirecting and terminating script execution. You must return it.
113131
- `redirect() Documentation CodeIgniter 3.X <https://codeigniter.com/userguide3/helpers/url_helper.html#redirect>`_
114132
- `redirect() Documentation CodeIgniter 4.X <../general/common_functions.html#redirect>`_

user_guide_src/source/outgoing/response.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ parameter. This is not case-sensitive.
5959

6060
.. literalinclude:: response/006.php
6161

62+
.. _force-file-download:
63+
6264
Force File Download
6365
===================
6466

0 commit comments

Comments
 (0)