I like the idea of 1 table = 1 model.
I created the following models:
- Form_options_model.php - This will deal with the dropdown options from the database (table lookups). Also used in form validation's "in_list[]" (grabbing all the keys with the help of array_keys() so dropdown values are still correct upon submission.
- Forms_model.php - This is where all the magic happens, from form submission to form fetching.
- Form_tables_model.php - For my datatables.
Is this correct? I need your opinions. Constructive criticisms are welcome.