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

[eluser]ajcolburn[/eluser]
This method is great for prepopulating an update record form. I have tried to modify it to allow for the creation of new records, but the system throws a PHP error if the set_value() default variable is not defined. The variable is not defined because if a record for the given ID is not returned by the model then my controller assumes a new record is being created. 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


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