load->helper('zebra_form'); # application/helpers/zebra_form_helper.php } // Call by your controller to get which form to create // I do this because my website creates different types of forms (i.e., login, contact, etc) public function create_form($form_name) { log_message('info', 'Creating '.$form_name); // call a helper function to create the form return $this->zebraForm = $form_name(); // above we dynamically called the function by $form_name // as you can tell naming is important so you have to make sure // you name the function 'funtion form_name' in your helper // and call this from your controller as '$this->zebra->create_form('form_name')' // I will go over this later too. } } /* End of file Zebra.php */