Welcome Guest, Not a member yet? Register   Sign In
newbie: Seperating Controllers Properly
#2

[eluser]Buso[/eluser]
I like checking if the post hast been submitted, so I can do both things in the same method:

Code:
if( ! $this->input->post('submit')) {
  // show the form
  return;
}
// process login

But your first choice is right too, it's a matter of taste


Messages In This Thread
newbie: Seperating Controllers Properly - by El Forum - 08-12-2010, 08:14 AM
newbie: Seperating Controllers Properly - by El Forum - 08-12-2010, 08:51 AM
newbie: Seperating Controllers Properly - by El Forum - 08-12-2010, 01:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB