Skip to content

Commit 1c670db

Browse files
committed
docs: move sample files
1 parent 71449dd commit 1c670db

5 files changed

Lines changed: 4 additions & 4 deletions

File tree

user_guide_src/source/outgoing/response.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Redirect to a URI path
7878

7979
When you want to pass a URI path (relative to baseURL), use ``redirect()->to()``:
8080

81-
.. literalinclude:: ../general/common_functions/005.php
81+
.. literalinclude:: ./response/028.php
8282
:lines: 2-
8383

8484
.. note:: If there is a fragment in your URL that you want to remove, you can use the refresh parameter in this function.
@@ -90,22 +90,22 @@ Redirect to a Defined Route
9090
When you want to pass a :ref:`route name <using-named-routes>` or Controller::method
9191
for :ref:`reverse routing <reverse-routing>`, use ``redirect()->route()``:
9292

93-
.. literalinclude:: ../general/common_functions/013.php
93+
.. literalinclude:: ./response/029.php
9494
:lines: 2-
9595

9696
When passing an argument into the function, it is treated as a route name or
9797
Controller::method for reverse routing, not a relative/full URI,
9898
treating it the same as using ``redirect()->route()``:
9999

100-
.. literalinclude:: ../general/common_functions/006.php
100+
.. literalinclude:: ./response/030.php
101101
:lines: 2-
102102

103103
Redirect Back
104104
-------------
105105

106106
When you want to redirect back, use ``redirect()->back()``:
107107

108-
.. literalinclude:: ../general/common_functions/014.php
108+
.. literalinclude:: ./response/031.php
109109
:lines: 2-
110110

111111
.. note:: ``redirect()->back()`` is not the same as browser "back" button.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)