Welcome Guest, Not a member yet? Register   Sign In
Loading a form from a view or building it in code?
#1

[eluser]carvingCode[/eluser]
Curious what the group feels is best way to handle this:

An app I'm building makes use of a number of different forms. I'm loading the forms using a couple different methods (concatenating form elements to a string and passing it to the view as a $data element and loading the form from a view and passing it to the main view page).

Building as string, I can immediately pass any variables as I'm building the form elements. As a separate file, I pass variables in as part of the $data array.

Both work fine but is one of these a 'better' way?

TIA




Theme © iAndrew 2016 - Forum software by © MyBB