CodeIgniter Forums
Display login form and exit. output->_display? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Display login form and exit. output->_display? (/thread-24289.html)



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