Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix incorrect description on RedirectException (1) #7629

Merged
merged 1 commit into from
Jun 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);