Welcome Guest, Not a member yet? Register   Sign In
Extended Views
#5

(This post was last modified: 09-16-2015, 11:34 AM by ad11.)

Since I have to generate multiple html selects in the main and other views, my thought was to do so in a modular fashion.

If the main view contains the code used to generate the html selects, then it couldn't be used by other views.

If helpers are used, then a single function must do all the work since a helper can't call other functions. Not a biggie for html select, but it might cause problems with more robust widgets.

Hence, my thought of generating the html code in the controller and passing it to the main view. But this doesn't seem to follow the MVC paradigm well.

What about using PHP includes in the view?

None of the options seems ideal. Thoughts from the community? Thanks.

Andy
Reply


Messages In This Thread
Extended Views - by ad11 - 09-13-2015, 04:23 PM
RE: Extended Views - by PaulD - 09-15-2015, 04:09 PM
RE: Extended Views - by ad11 - 09-15-2015, 07:04 PM
RE: Extended Views - by mwhitney - 09-16-2015, 08:09 AM
RE: Extended Views - by ad11 - 09-16-2015, 11:32 AM
RE: Extended Views - by mwhitney - 09-16-2015, 01:06 PM
RE: Extended Views - by ad11 - 09-22-2015, 02:25 PM
RE: Extended Views - by mwhitney - 09-23-2015, 07:19 AM
RE: Extended Views - by cartalot - 09-23-2015, 03:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB