Skip to content

Commit 10d3be6

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into 4.4
2 parents c02bae9 + b1b5544 commit 10d3be6

File tree

10 files changed

+22
-15
lines changed

10 files changed

+22
-15
lines changed

app/Config/App.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class App extends BaseConfig
125125

126126
/**
127127
* --------------------------------------------------------------------------
128-
* URI PROTOCOL
128+
* Force Global Secure Requests
129129
* --------------------------------------------------------------------------
130130
*
131131
* If true, this will force every request made to this application to be

user_guide_src/source/general/common_functions.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,11 @@ Miscellaneous Functions
266266

267267
Checks to see if the page is currently being accessed via HTTPS. If it is, then
268268
nothing happens. If it is not, then the user is redirected back to the current URI
269-
but through HTTPS. Will set the HTTP Strict Transport Security header, which instructs
270-
modern browsers to automatically modify any HTTP requests to HTTPS requests for the $duration.
269+
but through HTTPS. Will set the HTTP Strict Transport Security (HTST) header, which instructs
270+
modern browsers to automatically modify any HTTP requests to HTTPS requests for the ``$duration``.
271+
272+
.. note:: This function is also used when you set
273+
``Config\App:$forceGlobalSecureRequests`` to true.
271274

272275
.. php:function:: function_usable($function_name)
273276

user_guide_src/source/general/configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ the application configuration files in the **app/Config** folder.
1515
:local:
1616
:depth: 2
1717

18-
Working With Configuration Files
18+
Working with Configuration Files
1919
********************************
2020

2121
You can access configuration files for your classes in several different ways.

user_guide_src/source/general/errors.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ RedirectException
109109
previous class is deprecated.
110110

111111
This exception is a special case allowing for overriding of all other response routing and
112-
forcing a redirect to a specific route or URL:
112+
forcing a redirect to a specific URI:
113113

114114
.. literalinclude:: errors/010.php
115115

116-
``$uri`` may be a URI path relative to baseURL, or a complete URL. You can also supply a
116+
``$uri`` is a URI path relative to baseURL. You can also supply a
117117
redirect code to use instead of the default (``302``, "temporary redirect"):
118118

119119
.. literalinclude:: errors/011.php

user_guide_src/source/general/logging.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Each handler's section will have one property in common: ``handles``, which is a
8181

8282
.. literalinclude:: logging/004.php
8383

84-
Modifying the Message With Context
84+
Modifying the Message with Context
8585
==================================
8686

8787
You will often want to modify the details of your message based on the context of the event being logged.

user_guide_src/source/libraries/time.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,12 @@ Instantiating
2222
*************
2323

2424
There are several ways that a new Time instance can be created. The first is simply to create a new instance
25-
like any other class. When you do it this way, you can pass in a string representing the desired time. This can
26-
be any string that PHP's strtotime function can parse:
25+
like any other class.
26+
27+
When you do it this way, you can pass in a string representing the desired time. This can
28+
be any string that PHP's `strtotime()`_ function can parse:
29+
30+
.. _strtotime(): https://www.php.net/manual/en/function.strtotime.php
2731

2832
.. literalinclude:: time/001.php
2933

@@ -159,7 +163,7 @@ toDateTimeString()
159163
==================
160164

161165
This is the first of three helper methods to work with the `IntlDateFormatter <https://www.php.net/manual/en/class.intldateformatter.php>`_ without having to remember their values.
162-
This will return a localized version of string formatted as (Y-m-d H:i:s):
166+
This will return a localized version of string formatted as (``Y-m-d H:i:s``):
163167

164168
.. literalinclude:: time/016.php
165169

user_guide_src/source/libraries/uploaded_files.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ In controller:
231231
.. note:: Using ``getFiles()`` is more appropriate.
232232

233233
*********************
234-
Working With the File
234+
Working with the File
235235
*********************
236236

237237
Once you've retrieved the UploadedFile instance, you can retrieve information about the file in safe ways, as well as

user_guide_src/source/models/entities.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ are handled automatically by the class or the database, so we don't want to chan
5757
class as the ``$returnType``. This ensures that all methods on the model that return rows from the database will return
5858
instances of our User Entity class instead of an object or array like normal.
5959

60-
Working With the Entity Class
60+
Working with the Entity Class
6161
-----------------------------
6262

6363
Now that all of the pieces are in place, you would work with the Entity class as you would any other class:

user_guide_src/source/outgoing/localization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Localization
77
:depth: 3
88

99
********************
10-
Working With Locales
10+
Working with Locales
1111
********************
1212

1313
CodeIgniter provides several tools to help you localize your application for different languages. While full

user_guide_src/source/testing/response.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ Asserts that an input tag exists with the name and value:
249249

250250
.. literalinclude:: response/029.php
251251

252-
Working With JSON
252+
Working with JSON
253253
=================
254254

255255
Responses will frequently contain JSON responses, especially when working with API methods. The following methods
@@ -280,7 +280,7 @@ assertJSONExact($test)
280280

281281
Similar to ``assertJSONFragment()``, but checks the entire JSON response to ensure exact matches.
282282

283-
Working With XML
283+
Working with XML
284284
================
285285

286286
getXML()

0 commit comments

Comments
 (0)