Welcome Guest, Not a member yet? Register   Sign In
Any issues using "header"?
#1

[eluser]CodeIgniterNewbie[/eluser]
Are there any problems with using "header" to redirect users to various pages of a site? For example, if a user successfully logs in, the following command is issued:

Code:
header('Location: ' . base_url() . 'dashboard/')

Is there a "CI way" of redirecting users? Thanks.
#2

[eluser]n0xie[/eluser]
The URL Helper provides an easy function.
Code:
redirect()




Theme © iAndrew 2016 - Forum software by © MyBB