Skip to content

Commit

Permalink
Merge pull request #7629 from kenjis/fix-docs-RedirectException
Browse files Browse the repository at this point in the history
docs: fix incorrect description on RedirectException
  • Loading branch information
kenjis authored Jun 27, 2023
2 parents 08c046e + 19f88fb commit 1add05a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion user_guide_src/source/general/errors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ forcing a redirect to a specific route or URL:

.. literalinclude:: errors/010.php

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

.. literalinclude:: errors/011.php
Expand Down
2 changes: 1 addition & 1 deletion user_guide_src/source/general/errors/010.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php

throw new \CodeIgniter\Router\Exceptions\RedirectException($route);
throw new \CodeIgniter\Router\Exceptions\RedirectException($uri);
2 changes: 1 addition & 1 deletion user_guide_src/source/general/errors/011.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php

throw new \CodeIgniter\Router\Exceptions\RedirectException($route, 301);
throw new \CodeIgniter\Router\Exceptions\RedirectException($uri, 301);

0 comments on commit 1add05a

Please sign in to comment.