Re: Template blocks, QuickForms and iteration

From: Date: Thu, 09 Dec 2004 03:18:37 +0000
Subject: Re: Template blocks, QuickForms and iteration
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16130@lists.php.net to get a copy of this message
On Thu, 09 Dec 2004 12:37:56 +1100, karl@cyber.com.au <karl@cyber.com.au> wrote: > I've just come from using the PEAR port of PHPLib for templating to trying to use > QuickForms and Sigma (or similar) templates. What I'm trying to achieve is to > repeat a block from the template 0-n times on a page. > > For example: > We have a page containing a list all the soft-drink machines at a given site. Each of > the list items is simply a link to another page with a parameter tacked on the end. If > there are no machines at this site, display a string saying so. > > Which renderer / template engine will allow me to do this? None of the examples > I've been able to find (in doc/HTML_Quickform or on the net) show this many-to-one > relationship in the template. You say you want many-to-one, but above in the example you say that the list is just links to another page. Which is it? Are you trying to display multiple forms on one page or display the same form elements over and over in a *single* form? > > Thanks in advance, > -- Justin Patrin

« previous php.pear.general (#16130) next »