when creating a fairly complicated form that will be used to edit a database record I am currently loading the controller, sending the request to the model to make the form and then loading the output from the model itself instead of sending the form as a $string to the view to insert into the page.
I keep getting hung up on whether we should create the form (which needs to access the database even to create the form because it's dynamic) in the model or in the view and if it's created in the model, should we create it as a string and send it to a view.
I know there is no "perfect" answer here, but we are trying to standardize so that as we bring on developers, we've done things in an industry-standard way (which we are still learning). Using the Code Igniter framework.