Welcome Guest, Not a member yet? Register   Sign In
Redirect, it works only with one parameter
#1

[eluser]Alhazred[/eluser]
If a wrong page is requested I want to show a "page not found" view.
To do this I'm using the redirect() function, but I'm having a problem.

If I use
redirect('/home/page_not_found');
the page is shown

while if I use
redirect('/home/page_not_found', 'location', 404);
I get a blank page.

There is no output before the redirect function, what can cause the problem?


Messages In This Thread
Redirect, it works only with one parameter - by El Forum - 07-22-2012, 11:28 AM
Redirect, it works only with one parameter - by El Forum - 07-22-2012, 12:20 PM
Redirect, it works only with one parameter - by El Forum - 07-22-2012, 01:34 PM
Redirect, it works only with one parameter - by El Forum - 07-22-2012, 01:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB