Welcome Guest, Not a member yet? Register   Sign In
Prepopulating form data
#5

[eluser]JayTee[/eluser]
[quote author="ajcolburn" date="1236055161"]Basically I'm trying to write the simplest/shortest bit of code to add and edit records with one controller and one view.

Any help would be much appreciated...

Regards,
Alex[/quote]
I've had issues with this since I started using CI - but there's just no "easy" way to have a form that can be used for both adding AND editing. I just use 2 forms; 1 for adding, the other for editing.

I wish I could be more help. The nice thing is how much quicker/cleaner the CI 1.7 code is for creating these forms.


Messages In This Thread
Prepopulating form data - by El Forum - 02-09-2009, 06:02 PM
Prepopulating form data - by El Forum - 02-09-2009, 06:16 PM
Prepopulating form data - by El Forum - 03-02-2009, 04:39 PM
Prepopulating form data - by El Forum - 03-02-2009, 06:08 PM
Prepopulating form data - by El Forum - 03-02-2009, 07:56 PM
Prepopulating form data - by El Forum - 03-02-2009, 08:10 PM
Prepopulating form data - by El Forum - 03-06-2009, 05:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB