CodeIgniter Forums
Concept Question - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Concept Question (/showthread.php?tid=30179)



Concept Question - El Forum - 05-05-2010

[eluser]Unknown[/eluser]
I'm using dx auth. I have a login form as part of my view which contains two input boxes to login. When the user logs in, instead of showing the login forms I want to show the logged in users option in that DIV box.

I'm not sure where to load the code. Do i use my if is_logged_in then show this html else show the other html int he view? Or how do i do the code int he controller then load it into the view?

Thanks,