Skip to content

Commit

Permalink
Merge pull request #2567 from MGatner/guide-exception
Browse files Browse the repository at this point in the history
Apply User Guide code style to Errors
  • Loading branch information
MGatner authored Feb 17, 2020
2 parents a6bb348 + 24005d3 commit 6927298
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions user_guide_src/source/general/errors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ RedirectException
-----------------

This exception is a special case allowing for overriding of all other response routing and
forcing a redirect to a specific route or URL.
forcing a redirect to a specific route or URL::

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

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

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

0 comments on commit 6927298

Please sign in to comment.