Welcome Guest, Not a member yet? Register   Sign In
The right way to redirect
#3

[eluser]cahva[/eluser]
[quote author="connors" date="1271464638"]I'd use
Code:
redirect(site_url('dev/test'), 'refresh');
to ensure the path relative to your index.php (You'll need the url helper for the site_url() function)
[/quote]
Sorry but you're wrong about this. redirect function already uses site_url function so you dont have to add it anymore. So just redirect('dev/test') will do fine.

But with flashdata I agree 100% Smile Thats the way to inform something's changed. Action -> create flashdata -> redirect -> show flashdata


Messages In This Thread
The right way to redirect - by El Forum - 04-16-2010, 01:28 PM
The right way to redirect - by El Forum - 04-16-2010, 01:37 PM
The right way to redirect - by El Forum - 04-16-2010, 02:34 PM
The right way to redirect - by El Forum - 04-16-2010, 03:46 PM
The right way to redirect - by El Forum - 04-16-2010, 03:49 PM
The right way to redirect - by El Forum - 04-19-2010, 06:56 AM
The right way to redirect - by El Forum - 04-19-2010, 06:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB