From 24005d3286e5b5408c0dda7c9fa0ade3d16dd1a2 Mon Sep 17 00:00:00 2001 From: MGatner Date: Mon, 17 Feb 2020 14:32:55 -0500 Subject: [PATCH] [ci skip] Apply User Guide code style. Fixes #2530 --- user_guide_src/source/general/errors.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user_guide_src/source/general/errors.rst b/user_guide_src/source/general/errors.rst index 6eb150152fdd..1e0884e4f89c 100644 --- a/user_guide_src/source/general/errors.rst +++ b/user_guide_src/source/general/errors.rst @@ -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);