Skip to content

Commit c3489f0

Browse files
committed
docs: add docs
1 parent d3a1e56 commit c3489f0

4 files changed

Lines changed: 72 additions & 0 deletions

File tree

user_guide_src/source/changelogs/v4.3.2.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@ Release Date: Unreleased
1212
BREAKING
1313
********
1414

15+
Behavior Changes
16+
================
17+
18+
base_url()
19+
----------
20+
21+
Due to a bug, in previous versions :php:func:`base_url()` without argument returned baseURL
22+
without a trailing slash (``/``) like ``http://localhost:8080``. Now it returns
23+
baseURL with a trailing slash. This is the same behavior as ``base_url()`` in
24+
CodeIgniter 3.
25+
1526
Message Changes
1627
***************
1728

user_guide_src/source/helpers/url_helper.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ The following functions are available:
6464
.. note:: Since v4.3.0, if you set ``Config\App::$allowedHostnames``,
6565
this returns the URL with the hostname set in it if the current URL matches.
6666

67+
.. note:: In previous versions, this returned the base URL without a trailing
68+
slash (``/``) when called with no argument. The bug was fixed and
69+
since v4.3.2 it returns the base URL with a trailing slash.
70+
6771
Returns your site base URL, as specified in your config file. Example:
6872

6973
.. literalinclude:: url_helper/003.php
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
##############################
2+
Upgrading from 4.3.1 to 4.3.2
3+
##############################
4+
5+
Please refer to the upgrade instructions corresponding to your installation method.
6+
7+
- :ref:`Composer Installation App Starter Upgrading <app-starter-upgrading>`
8+
- :ref:`Composer Installation Adding CodeIgniter4 to an Existing Project Upgrading <adding-codeigniter4-upgrading>`
9+
- :ref:`Manual Installation Upgrading <installing-manual-upgrading>`
10+
11+
.. contents::
12+
:local:
13+
:depth: 2
14+
15+
Breaking Changes
16+
****************
17+
18+
base_url()
19+
==========
20+
21+
The :php:func:`base_url()` behavior has been fix. In previous versions, when you
22+
call ``base_url()`` **without argument**, it returned baseURL without a trailing
23+
slash (``/``). Now it returns baseURL with a trailing slash. For example:
24+
25+
- before: ``http://example.com``
26+
- after: ``http://example.com/``
27+
28+
If you have code to call ``base_url()`` without argument, you may need to adjust the URLs.
29+
30+
Project Files
31+
*************
32+
33+
Some files in the **project space** (root, app, public, writable) received updates. Due to
34+
these files being outside of the **system** scope they will not be changed without your intervention.
35+
36+
There are some third-party CodeIgniter modules available to assist with merging changes to
37+
the project space: `Explore on Packagist <https://packagist.org/explore/?query=codeigniter4%20updates>`_.
38+
39+
Content Changes
40+
===============
41+
42+
The following files received significant changes (including deprecations or visual adjustments)
43+
and it is recommended that you merge the updated versions with your application:
44+
45+
Config
46+
------
47+
48+
- @TODO
49+
50+
All Changes
51+
===========
52+
53+
This is a list of all files in the **project space** that received changes;
54+
many will be simple comments or formatting that have no effect on the runtime:
55+
56+
- @TODO

user_guide_src/source/installation/upgrading.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ See also :doc:`./backward_compatibility_notes`.
1616

1717
backward_compatibility_notes
1818

19+
upgrade_432
1920
upgrade_431
2021
upgrade_430
2122
upgrade_4212

0 commit comments

Comments
 (0)