@@ -39,8 +39,8 @@ Since v4.4.0, if you don't pass a URL, it returns the current URI:
39
39
The Current URI
40
40
---------------
41
41
42
- Many times, all you really want is an object representing the current URL of this request.
43
- You can use the :php:func: `current_url() ` function available in the :doc: `../helpers/url_helper `:
42
+ When you need an object representing the current URL of the request,
43
+ you can use the :php:func: `current_url() ` function available in the :doc: `../helpers/url_helper `:
44
44
45
45
.. literalinclude :: uri/004.php
46
46
:lines: 2-
@@ -141,12 +141,12 @@ When using the ``setPort()`` method, the port will be checked that it is within
141
141
Path
142
142
----
143
143
144
- The path are all of the segments within the site itself. As expected, the ``getPath() `` and ``setPath() `` methods
144
+ The path is all of the segments within the site itself. As expected, the ``getPath() `` and ``setPath() `` methods
145
145
can be used to manipulate it:
146
146
147
147
.. literalinclude :: uri/016.php
148
148
149
- .. note :: When setting the path this way, or any other way the class allows, it is sanitized to encode any dangerous
149
+ .. note :: When setting the path it is sanitized to encode any dangerous
150
150
characters, and remove dot segments for safety.
151
151
152
152
.. note :: Since v4.4.0, the ``SiteURI::getRoutePath()`` method,
@@ -166,7 +166,7 @@ be set as a string currently.
166
166
167
167
.. literalinclude :: uri/017.php
168
168
169
- The ``setQuery() `` method overwrite any existing query variables.
169
+ The ``setQuery() `` method overwrites existing query variables.
170
170
171
171
.. note :: Query values cannot contain fragments. An InvalidArgumentException will be thrown if it does.
172
172
@@ -177,7 +177,7 @@ You can set query values using an array:
177
177
178
178
.. literalinclude :: uri/018.php
179
179
180
- The ``setQueryArray() `` method overwrite any existing query variables.
180
+ The ``setQueryArray() `` method overwrites existing query variables.
181
181
182
182
Adding Query Value
183
183
^^^^^^^^^^^^^^^^^^
@@ -196,11 +196,12 @@ You can filter the query values returned by passing an options array to the ``ge
196
196
197
197
.. literalinclude :: uri/020.php
198
198
199
- This only changes the values returned during this one call. If you need to modify the URI's query values more permanently,
199
+ This only changes the values returned during this one call.
200
200
201
201
Changing Query Values
202
202
^^^^^^^^^^^^^^^^^^^^^
203
203
204
+ If you need to modify the URI's query values more permanently,
204
205
you can use the ``stripQuery() `` and ``keepQuery() `` methods to change the actual object's query variable collection:
205
206
206
207
.. literalinclude :: uri/021.php
0 commit comments