Quickform Builder + Smarty
| From: | Sparacio, Sal | Date: | Tue, 26 Oct 2004 13:26:29 +0000 |
| Subject: | Quickform Builder + Smarty | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-15115@lists.php.net to get a copy of this message | ||
I am on the last steps on this adventure with Dataobjects + Quickform +
Smarty. [ I am def going to write some docs after this. :) ] Thanks for
everyone's help.
Last little things, which are kind of big..
I am trying to get smarty to output the Submit button.
Everything else outputs except that, I have tried {$form_data.submit.html}
.. and all variations of submit, submitbutton .. etc.
Code to assign to smarty:: $tpl->assign('form_data', $renderer->toArray());
For the rest of the fields I am using {$form_data.collumname.html} for the
fields and {$form_data.collumname.label} for the labels, now when I did this
on the QF that I did
manually it would put the red star(*) behind the labels. Now, when theses
forms don't go to smarty they show up right, with the correct labels ( the
red * and the correct spelling).
Last thing I am not getting is I need some of the fields to be radio buttons
instead of regular text boxes. Should I use something like:
preGenerateForm?? If so I don't know how to use it, if someone could show an
example that would be awesome.
Just a recap of what I am looking for
Submit Buttons threw smarty
Correct labels + red starts (*) to denote that they are required
Some fields to be radio buttons.
-- Sal