Re: QuickForm and templates RFC
| From: | Jeroen Houben | Date: | Fri, 21 Feb 2003 15:06:28 +0000 |
| Subject: | Re: QuickForm and templates RFC | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-13558@lists.php.net to get a copy of this message | ||
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 ? Wouldn't that be difficult, since there are so many template engines out there? What you could do is just generate an object or array that has:- each element's name - each element's content - each element's validation rules (name of the rule) and if they were violated or not It's pretty basic but that means it's pretty flexible right? Anyway, I think you probably have something more sophisticated in mind because what I describe here (except there rule bit I think) can already be done using toArray() Jeroen