fieldcomponent_class
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
fieldcomponent_class [2021/10/08 21:31] – sahl | fieldcomponent_class [2022/11/30 13:22] (current) – [Adding the component to the form] sahl | ||
---|---|---|---|
Line 58: | Line 58: | ||
// $componentfield can now be added to a form | // $componentfield can now be added to a form | ||
+ | </ | ||
+ | |||
+ | For convenience the form also have an addComponent-function that does exactly the same as above in one line: | ||
+ | |||
+ | <code php> | ||
+ | $textcomponent = new TextComponent(); | ||
+ | $form-> | ||
</ | </ | ||
fieldcomponent_class.1633728676.txt.gz · Last modified: 2021/10/08 21:31 by sahl