Partial Views? |
Hi is it possible to have an index list with a form submission created from partials?
For example I want to have a waitlist table shown with data populated from database, but there is also a modal with a form inside it to submit a new entry to the waitlist Controller: PHP Code: public function index() Index PHP Code: <?php $this->load->view('reservation/create2'); ?> Modal PHP Code: <? echo modal('modal-1', ' Currently I get error with validation_error and form_open not found. Anyway to make this work?
It will probably work if you load the form helper and form_validation library in the controller's constructor instead of loading them inside the create2 method. Since you don't call the create2 method until you submit the form in your modal, the helper and library aren't loaded and the functions aren't available.
|
Welcome Guest, Not a member yet? Register Sign In |