Welcome Guest, Not a member yet? Register   Sign In
Global form validation callbacks? Staged forms?
#1

[eluser]tomclowes[/eluser]
Three questions today Smile

1. I have a simple capcha check for usage with the form validation library/callack capabilities. I define my callack at the bottom of my controller. I want to use this callback function in all of my forms - is there a global location where I can define these functions?

2. I have a complicated 3 stage form. What is the best way of doing this with a controller?
At the moment I basically have a single function which uses lots of if statements to detect whether the form subit buttons of the respective pages have been submitted - is this the correct approach?

3. I had a break from development, came back to my code and thought WHAT ! I have commented everything well, so understand it again but it seems to me that splitting up things into M, V, and C makes it extra complicated to understand.. Views?

Cheers


Messages In This Thread
Global form validation callbacks? Staged forms? - by El Forum - 09-03-2010, 01:35 PM
Global form validation callbacks? Staged forms? - by El Forum - 09-04-2010, 04:23 AM
Global form validation callbacks? Staged forms? - by El Forum - 09-04-2010, 04:51 AM
Global form validation callbacks? Staged forms? - by El Forum - 09-04-2010, 06:35 AM
Global form validation callbacks? Staged forms? - by El Forum - 09-04-2010, 07:22 AM
Global form validation callbacks? Staged forms? - by El Forum - 09-04-2010, 08:21 AM
Global form validation callbacks? Staged forms? - by El Forum - 09-04-2010, 10:25 AM
Global form validation callbacks? Staged forms? - by El Forum - 09-04-2010, 12:21 PM
Global form validation callbacks? Staged forms? - by El Forum - 09-04-2010, 12:38 PM
Global form validation callbacks? Staged forms? - by El Forum - 09-04-2010, 04:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB