RE: Smarty and OOH Forms

From: Date: Thu, 14 Mar 2002 09:00:09 +0000
Subject: RE: Smarty and OOH Forms
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3051@lists.php.net to get a copy of this message
Personally, i'd use Pear HTML_OOH_Forms and place the content in a smarty variable. Now, for the internal functionning of HTML_OOH, you can use templates to control the layout, it uses IT[X] at the moment, but i guess it is possible to make it use smarty. Arnaud. > > 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.firs > t_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/ > > > > > > > --- > You are currently subscribed to smarty as: arnaud.limbourg@cegetel.fr > To unsubscribe send a blank email to > $subst('Email.Unsub') > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/ >

« previous php.smarty.general (#3051) next »