CodeIgniter Forums

Full Version: Display login form and exit. output->_display?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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