From 15fd1a6eade2a92364ae5b4e84811d7d8bd1e3b7 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Sun, 17 Jan 2010 16:35:13 +0000 Subject: clarifying redirect helper --- user_guide/helpers/url_helper.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'user_guide/helpers') diff --git a/user_guide/helpers/url_helper.html b/user_guide/helpers/url_helper.html index f9435e0b8..1ccb8a713 100644 --- a/user_guide/helpers/url_helper.html +++ b/user_guide/helpers/url_helper.html @@ -246,9 +246,8 @@ $url = prep_url($url);

redirect()

-

Does a "header redirect" to the local URI specified. Just like other functions in this helper, this one is designed -to redirect to a local URL within your site. You will not specify the full site URL, but rather simply the URI segments -to the controller you want to direct to. The function will build the URL based on your config file values.

+

Does a "header redirect" to the URI specified. If you specify the full site URL that link will be build, but for local links simply providing the URI segments +to the controller you want to direct to will create the link. The function will build the URL based on your config file values.

The optional second parameter allows you to choose between the "location" method (default) or the "refresh" method. Location is faster, but on Windows servers it can sometimes be a problem. The optional third parameter allows you to send a specific HTTP Response Code - this could be used for example to create 301 redirects for search engine purposes. The default Response Code is 302. The third parameter is only available with 'location' redirects, and not 'refresh'. Examples:

-- cgit v1.2.3-24-g4f1b