blob: ebce7ab9b10033f9b108d8ae355a2f137d627203 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#############################
Upgrading from 3.1.2 to 3.1.3
#############################
Before performing an update you should take your site offline by
replacing the index.php file with a static one.
Step 1: Update your CodeIgniter files
=====================================
Replace all files and directories in your *system/* directory.
.. note:: If you have any custom developed files in these directories,
please make copies of them first.
Step 2: Remove usage of nice_date() helper (deprecation)
========================================================
The :doc:`Date Helper <../helpers/date_helper>` function ``nice_date()`` is
no longer useful since the introduction of PHP's `DateTime classes
<https://secure.php.net/datetime>`_
You can replace it with the following:
::
DateTime::createFromFormat($input_format, $input_date)->format($desired_output_format);
Thus, ``nice_date()`` is now deprecated and scheduled for removal in
CodeIgniter 3.2+.
.. note:: The function is still available, but you're strongly encouraged
to remove its usage sooner rather than later.
|