Welcome Guest, Not a member yet? Register   Sign In
Redirect to session value how to
#5

[eluser]ReyPM[/eluser]
[quote author="CroNiX" date="1355853622"]Aren't you already in that controller? Why redirect? Just go to the appropriate method.

instead of
Code:
redirect('cauthor/ppi/' . $this->session->userdata('author_id'));

why not
Code:
$this->ppi($this->session->userdata('author_id'));
of course then you'd slightly need to adjust ppi, like:
Code:
function ppi($author_id = 0)

you really only need to redirect if you are going to a different controller...[/quote]

Hi, CroNiX and thanks for your suggestion of course make sense to do things as you said before so I´ll try this way. Thanks a lot


Messages In This Thread
Redirect to session value how to - by El Forum - 12-17-2012, 01:34 PM
Redirect to session value how to - by El Forum - 12-17-2012, 11:24 PM
Redirect to session value how to - by El Forum - 12-18-2012, 11:00 AM
Redirect to session value how to - by El Forum - 12-18-2012, 11:05 AM
Redirect to session value how to - by El Forum - 12-18-2012, 01:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB