Welcome Guest, Not a member yet? Register   Sign In
Edit, validate, re-edit issue using set_value with optional parameter
#22

[eluser]bretticus[/eluser]
[quote author="billmce" date="1269043040"]

The crux of the problem is that set_value expects that both of the values passed to it have some value.

On the second pass, after validation failure, there is no value in the variables because I only got the data once .. the first pass when I actually need it to populate the view.
[/quote]

Actually, had you read my original post better, you would have noticed I answered that question.

Quote:...Make sure you initialize these variables so that they are empty arrays elements at least to avoid Undefined Variable notices (not errors.)

[quote author="billmce" date="1269043040"]
I'd suggest that set_values optional parameter behave differently ... but hey, it's now working.[/quote]

This isn't a set_values() issue. This is the normal behavior for PHP when you specify a variable that doesn't exist. AND, when you have php error handling set to show notices (which, again, are not actually errors.)

Again, glad you go it working.


Messages In This Thread
Edit, validate, re-edit issue using set_value with optional parameter - by El Forum - 03-19-2010, 01:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB