Welcome Guest, Not a member yet? Register   Sign In
Form used in new and edit mode
#2

[eluser]bretticus[/eluser]
Don't pass your row to the view. Instead create variables in the controller (like $first_name) and set them to an empty string when not in edit mode. You can still use one view without having 40 if else then blocks in it Smile Pass through the form action as a variable too and you can process the same view form differently (insert/update.)


Messages In This Thread
Form used in new and edit mode - by El Forum - 09-23-2009, 11:17 AM
Form used in new and edit mode - by El Forum - 09-23-2009, 11:45 AM
Form used in new and edit mode - by El Forum - 09-23-2009, 12:29 PM
Form used in new and edit mode - by El Forum - 09-23-2009, 02:22 PM
Form used in new and edit mode - by El Forum - 09-23-2009, 04:07 PM
Form used in new and edit mode - by El Forum - 09-24-2009, 08:04 AM
Form used in new and edit mode - by El Forum - 09-24-2009, 08:32 AM
Form used in new and edit mode - by El Forum - 09-24-2009, 08:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB