Welcome Guest, Not a member yet? Register   Sign In
Manipulate called controller function name before it is called?
#4

[eluser]dudeami0[/eluser]
Code:
class Foo extends Controller {
  
   function bar() {
      if ($this->input->post('form') !== false) {
         $this->bar_post();
      } else {
         // Form here?
      }
   }

   function bar_post() {
      // Post stuff here
   }

}

That would work :p


Messages In This Thread
Manipulate called controller function name before it is called? - by El Forum - 11-22-2010, 11:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB