RE: Smarty and OOH Forms
| From: | Jimmy Harlindong | Date: | Thu, 14 Mar 2002 02:13:30 +0000 |
| Subject: | RE: Smarty and OOH Forms | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-3042@lists.php.net to get a copy of this message | ||
I did something like this in the past, even though it's not directly
tied with Smarty (it can be used in plain php / html coding).
All my my class does is build the required html codes for each
individual form elements (including the label) as an array e.g.
$forms.controls['element_name']
This in turn can be assigned to smarty and in the template you can have
something like
{if $form.show}
{$form.start}
<table>
<tr><td>{$form.labels.first_name}</td><td>{$form.controls.first_name}</t
d></tr>
.
.
.
</table>
{$form.end}
{/if}
Any comments? Or other class you know of?
I initially tried to use OOH Form but gave up trying :( Anyone has a
better luck?
This class is like 80% done.
Cheers
Jimmy
> -----Original Message-----
> From: Steve [mailto:steve@iwsys.com]
> Sent: Thursday, 14 March 2002 9:02 AM
> To: smarty@lists.ispi.net
> Subject: [smarty] Smarty and OOH Forms
>
>
> I was looking at OOH Forms and I was wondering if anyone has
> thought about
> incorporating that type of functionality into Smarty? It is a prime
> candidate for a Smarty tag. Maybe pass an array of form
> element objects.
>
> Any thoughts, ideas or existing work?
>
> Steve
>
>
> ---
> You are currently subscribed to smarty as: jimmy@harlindong.com
> To unsubscribe send a blank email to
> $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
>
>