CodeIgniter Forums
Display login form and exit. output->_display? - 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: Display login form and exit. output->_display? (/showthread.php?tid=24289)



Display login form and exit. output->_display? - El Forum - 11-05-2009

[eluser]BilliamTheSecond[/eluser]
I have a controller class that checks login status in the constructor. In some cases, I'd like to display a form (instead of running a controller function), and exit.

The way I'm currently doing this that seems to be working is just load->view followed by output->_display()

Am I going about this the wrong way? Bad practice? Thanks Smile