Welcome Guest, Not a member yet? Register   Sign In
Problems with the form helper and scaffolding when you change the app base and don't show index.php
#9

[eluser]Colin Williams[/eluser]
Quote:I mean, if one purpose of MVC is too keep as much code as possible out of the view, isn’t it better to just write your form tags in regular old HTML?

MVC separates database interaction from business logic from display. It doesn't necessarily mean you need to strip code from your views, just database interaction and business logic. I think keeping views to only spitting out variables is a good goal, but I do find form helper functions extremely useful, especially when the nature of the form is dynamic, or you've got massive arrays to load into dropdowns (choose state, choose country, etc.) In these cases, the form helper does reduce the amount of code needed in the view.

And any professional designer will be able to handle the form helper functions, especially with the user guide handy.


Messages In This Thread
Problems with the form helper and scaffolding when you change the app base and don't show index.php - by El Forum - 07-12-2008, 02:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB