Welcome Guest, Not a member yet? Register   Sign In
Editing a form - CI strategy
#1

[eluser]stevefink[/eluser]
Hi all,

So I have a form where a user inputs their stuff, etc. Later on, this data gets populated into a table with zebra stripes, nothing out of the ordinary there.

Now I have the issue, where I need to have the user be able to edit the form and update the db, versus insert data. Inputs that would normally get validated as FALSE in the insert form, might not be false in this particular mode. For instance, if a key that requires to be unique needs to be changed in the Edit mode, it should be allowed to get changed. In insert mode, it would give the user an error that the key has already been added.

I've been searching the threads without much luck on how folks tackle this problem using CI. Would anyone be able to suggest anything? Should I use a completely separate controller for modifying the information versus adding the information? Use the same view by the different controllers so everything visually and input wise stays the same?

Thanks so much, could really use a helping hand here.

- sf


Messages In This Thread
Editing a form - CI strategy - by El Forum - 08-22-2007, 09:09 PM
Editing a form - CI strategy - by El Forum - 08-22-2007, 11:17 PM
Editing a form - CI strategy - by El Forum - 08-23-2007, 04:38 AM
Editing a form - CI strategy - by El Forum - 08-23-2007, 05:30 PM
Editing a form - CI strategy - by El Forum - 08-24-2007, 11:18 AM
Editing a form - CI strategy - by El Forum - 08-27-2007, 04:24 PM
Editing a form - CI strategy - by El Forum - 08-27-2007, 04:31 PM
Editing a form - CI strategy - by El Forum - 08-27-2007, 04:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB