SmartyRender for PEAR Quickform
| From: | Thomas Schulz | Date: | Tue, 22 Apr 2003 16:27:36 +0000 |
| Subject: | SmartyRender for PEAR Quickform | ||
| Groups: | php.smarty.dev | ||
| Request: | Send a blank email to php-smarty-dev+get-1253@lists.php.net to get a copy of this message | ||
Hi,
I write 2 Renderer for PEAR's HTML_QuickForm Package (for a discription
of Quickform see: http://pear.php.net/package-info.php?
package=HTML_QuickForm ).
They are works with the current CVS-Version of Quickform and implement
two new renderers:
SmartyStatic:
-------------
builds an flat array for use in an "static" template (see smarty-
static.tpl) by calling {$form.element.html}, {$form.element.label},
{$form.element.error}...
SmartyDynamic:
-------------
builds an complex array that can used in an "dynamic" template (see
smarty-dynamic.tpl) by interate the array with {foreach} or {section}
inside the template.
You can download it here:
http://4bc.info/pear/SmartyRenderer.zip
Feel free to test and give some feedback. If there are no problems or
better solutions, these Smarty renderers could became a part of the PEAR
Quickform Package.
Thomas.