Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Seeking advice on trimming amount of code for a CRUD form
#2

[eluser]Colin Williams[/eluser]
All you need to do is sort out the form values in the controller, then pass those values on to the view. Take a step back, sketch it out on notebook paper.

Also, skimming through the screencasts at http://ellislab.com/forums/viewthread/92009/ might reveal some ideas for your own process. The series uses the old validation class and never gets to the editing part, but you can extrapolate how to do it, I'd imagine.

Just think of the view as stupid. It just prints out values into controls and elsewhere. Let the controller sort out the details.


Messages In This Thread
[SOLVED] Seeking advice on trimming amount of code for a CRUD form - by El Forum - 04-24-2009, 09:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB