Welcome Guest, Not a member yet? Register   Sign In
1 controller = 1 model VS. 1 controller = multiple model
#10

(This post was last modified: 08-27-2018, 10:29 PM by kaitenz.)

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.
Reply


Messages In This Thread
RE: 1 controller = 1 model VS. 1 controller = multiple model - by kaitenz - 08-27-2018, 09:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB