Redirect Function with custom delay |
[eluser]sophistry[/eluser]
[quote author="Yash" date="1217111642"] Replace this function with your system/helper/url_helper.php function.[/quote] @yash, first of all, thanks for the code contribution! it's great to see a nice variation on the redirect. i've found that certain browsers react differently to the meta refresh tag and i'm sure there is a page or two on it somewhere out there. second, the ideal way to use a helper modification such as this one is to put it in its own file inside application/helpers directory and call the file MY_url_helper.php ... see the manual for details. do not replace (copy/paste) functions into the core files, it's just bad practice. that way, this (same named) function can override the old one (but, you might have to remove the function exists check - not completely sure on that point). makes for better portability and easier upgrading to new core versions. cheers. |
Messages In This Thread |
Redirect Function with custom delay - by El Forum - 07-26-2008, 11:34 AM
Redirect Function with custom delay - by El Forum - 07-26-2008, 08:57 PM
Redirect Function with custom delay - by El Forum - 07-26-2008, 09:07 PM
Redirect Function with custom delay - by El Forum - 07-26-2008, 10:01 PM
Redirect Function with custom delay - by El Forum - 07-26-2008, 10:21 PM
Redirect Function with custom delay - by El Forum - 07-27-2008, 04:17 AM
|