Welcome Guest, Not a member yet? Register   Sign In
How To Use Javascript In CI??
#2

[eluser]Twisted1919[/eluser]
1. the isset($is_logged_in) is useles.
2. putting the javascript where you want is WRONG for 2 reasons:
a) the controller NEVER echo's data , the views do that, so you need to load a view to spit those alerts .
b) if you echo something before redirect, you'll end up with an "headers already sent" error .


Messages In This Thread
How To Use Javascript In CI?? - by El Forum - 12-05-2010, 03:12 AM
How To Use Javascript In CI?? - by El Forum - 12-05-2010, 07:03 AM
How To Use Javascript In CI?? - by El Forum - 12-06-2010, 07:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB