Hello guys. I spent the past few hours searching for a tutorial/documentation for QuickForm2 but seems like there is no such thing other than the examples attached with the package itself which are not sufficient at all. I tried looking through the API documentation but I can't find a method called addElement for example which is the most used method there. I just need any good tutorial about the second version of the package or would you please tell me where can i find the methods (addElement, addRule, element specific methods like setValue, setOptions, setContent ... etc).
A:
I'm not too familiar with QuickForm, but a google search found this page http://pear.php.net/reference/HTML_QuickForm2-latest/li_HTML_QuickForm2.html
I think you're possibly struggling because the methods you're looking for are in the base classes?
For example: Element mentions that it Includes Node.php.
and Node has an addRule method (and setValue)
addElement looks like its in the Container class
PaulG
2010-10-03 19:00:34
A:
Up to now, there is no real documentation for QuickForm2 except the examples. That's how it is, sorry.
addElement
is in HTML/QuickForm2/Container.php
.
cweiske
2010-10-04 11:42:48