Welcome Guest, Not a member yet? Register   Sign In
best practices on Form Reuse - keeping all forms in a central location with validation
#11

[eluser]skattabrain[/eluser]
sorry to keep posting, but i still am not sure how to centralize form validation. any ideas?

can you keep validation logic in a library?

i can create a new controller and call it 'form_processor' then use a view to load the form on any page i desire and post into 'form_processor', but when the validation rules detect a field isn't correct ... i will no longer be on the same form.

argh! i'm so confused with this now. it's like i need to simply pull the validation with a good ole php include. (which by the way seems to work well ... although i haven't tried a callback yet)


Messages In This Thread
best practices on Form Reuse - keeping all forms in a central location with validation - by El Forum - 07-16-2008, 10:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB