Welcome Guest, Not a member yet? Register   Sign In
what am i missing?
#5

[eluser]Michael Wales[/eluser]
Without spending to much of my time on it, I would probably make the upload field have a rule calling a callback function. Within the callback function I would handle all of the Upload class errors if they exist, bringing them back into the Validation class via the set_message() method.

Or - you can also call these error methods from your view. Sure, it's a small break in the MVC pattern but would you rather stick to the pattern or punch your wife in your sleep?


Messages In This Thread
what am i missing? - by El Forum - 05-22-2008, 02:47 AM
what am i missing? - by El Forum - 05-22-2008, 02:51 AM
what am i missing? - by El Forum - 05-22-2008, 03:05 AM
what am i missing? - by El Forum - 05-22-2008, 03:38 AM
what am i missing? - by El Forum - 05-22-2008, 04:00 AM
what am i missing? - by El Forum - 05-22-2008, 04:21 AM
what am i missing? - by El Forum - 05-22-2008, 10:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB