Welcome Guest, Not a member yet? Register   Sign In
Array values that arent set
#2

[eluser]Colin Williams[/eluser]
I did a screencast awhile back that explains this. It is the controller's job to provide the view will all the data it needs. So simply provide those variables via the controller.

1.) Have all variables available with default values (even if they are all empty)
2.) If the form needs to be populated from the DB, get values from the model
3.) If dealing with a failed form submission, populate the values with the $_POST values (naturally, just use the $_POST values)

Basically, you seem to be missing step 1


Messages In This Thread
Array values that arent set - by El Forum - 05-15-2009, 11:12 PM
Array values that arent set - by El Forum - 05-16-2009, 01:21 AM
Array values that arent set - by El Forum - 05-16-2009, 04:14 AM
Array values that arent set - by El Forum - 05-16-2009, 05:55 AM
Array values that arent set - by El Forum - 05-16-2009, 06:36 PM
Array values that arent set - by El Forum - 05-16-2009, 11:21 PM
Array values that arent set - by El Forum - 05-16-2009, 11:40 PM
Array values that arent set - by El Forum - 05-17-2009, 03:32 AM
Array values that arent set - by El Forum - 05-17-2009, 05:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB