Have you ever seen a book, article, or tutorial specifically about PHP form framework? I'm not talking about a whole framework, but just the bits to handle form. For now, I've used Zend's form and Symfony's form, and I'm learning about how to build a framework, and stuck in the "how to build a form framework" part.
I've tried to read Zend's and Symfony's code, but I think it's just too big and complex, without any explanation. Do you have any recommendation, or even maybe someone mind explaining how a form framework works (or even better, how to build a form framework)?
What I've got so far:
- I need to create an abstract form object, so all other forms in my application can be inherited from here. The form has must have at least methods for configuring and saving.
- We need a base widget class (for form elements) and a base validator class for form elements and widgets.
- We need to somehow connects all of the forms. This is the part that confuses me. How can I connect all that elements?
Could someone please give me a hint?