Skip to content

Commit

Permalink
docs: fix incorrect description
Browse files Browse the repository at this point in the history
A named route cannot be used with RedirectException.
  • Loading branch information
kenjis committed Jun 27, 2023
1 parent 1e7204b commit 19f88fb
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 19f88fb

Please sign in to comment.