Re: QuickForm and templates RFC

From: Date: Thu, 20 Feb 2003 17:51:35 +0000
Subject: Re: QuickForm and templates RFC
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-3870@lists.php.net to get a copy of this message
Would love to see some output options. For example it would be great if there was a toggle in some of the form elements, for output. So if specified it would show the form element, or just plain text. This would help out tremendously when creating pages that have certian parts of forms that need to be restricted based on access or whatever. For example I could have some sort of auth system that did something like: if ($auth = admin){ $perm = 1 } else ($perm = 0) $form->addElement('text', 'somefield', 'Some Text', $perm); So in the above case 1 in the addElement would show them the form field, and 0 would show just text. Keith On Thu, 2003-02-20 at 09:42, Bertrand Mansion wrote: > Hi, > > Today, QuickForm has been released in version 2.9. > This version is IMO quite stable and a lot of old bugs or problems have been > fixed, making QuickForm work as expected in most cases. > > I think it's now time to think about new features. The first one I would > like to implement is a template bridge so that you won't need to care > anymore about element and form templates or layout in your code. > > Do you have any ideas on how this could be done ? > > I have some ideas myself, but I would like to know your opinions about that > before I start the project. ;) > > Thanks all, > > Bertrand Mansion > Mamasam > > PS: if you reply, don't cross post on pear-dev and pear-general, TIA. -- Keith Pettit <keith@setuplinux.com> Home

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