diff options
author | Andrey Andreev <narf@devilix.net> | 2018-01-13 12:57:11 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2018-01-13 12:57:11 +0100 |
commit | 02a0518e1c56ba3506f370362ac5ebdb8a138312 (patch) | |
tree | 8b4684192b403dcae17d298eb4fc9e7ab001acad /user_guide_src/source/installation/upgrade_306.rst | |
parent | f0b9735d5857e6c07c8f5824b13cff4828db3cfe (diff) |
[ci skip] 3.1.7 release
Diffstat (limited to 'user_guide_src/source/installation/upgrade_306.rst')
-rw-r--r-- | user_guide_src/source/installation/upgrade_306.rst | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/user_guide_src/source/installation/upgrade_306.rst b/user_guide_src/source/installation/upgrade_306.rst deleted file mode 100644 index 3863e0afa..000000000 --- a/user_guide_src/source/installation/upgrade_306.rst +++ /dev/null @@ -1,48 +0,0 @@ -############################# -Upgrading from 3.0.5 to 3.0.6 -############################# - -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: Update your index.php file (optional) -============================================= - -We've made some tweaks to the index.php file, mostly related to proper -usage of directory separators (i.e. use the ``DIRECTORY_SEPARATOR`` -constant instead of a hard coded forward slash "/"). - -Nothing will break if you skip this step, but if you're running Windows -or just want to be up to date with every change - we do recommend that -you update your index.php file. - -*Tip: Just copy the ``ENVIRONMENT``, ``$system_path``, ``$application_folder`` -and ``$view_folder`` declarations from the old file and put them into the -new one, replacing the defaults.* - -Step 3: Remove 'prep_for_form' usage (deprecation) -================================================== - -The :doc:`Form Validation Library <../libraries/form_validation>` has a -``prep_for_form()`` method, which is/can also be used as a rule in -``set_rules()`` to automatically perform HTML encoding on input data. - -Automatically encoding input (instead of output) data is a bad practice in -the first place, and CodeIgniter and PHP itself offer other alternatives -to this method anyway. -For example, :doc:`Form Helper <../helpers/form_helper>` functions will -automatically perform HTML escaping when necessary. - -Therefore, the *prep_for_form* method/rule is pretty much useless and is now -deprecated and scheduled for removal in 3.1+. - -.. note:: The method is still available, but you're strongly encouraged to - remove its usage sooner rather than later. |