Re: Quickform 3: Array-Renderer
| From: | Alexey Borzov | Date: | Wed, 16 Apr 2003 09:22:43 +0000 |
| Subject: | Re: Quickform 3: Array-Renderer | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-15201@lists.php.net to get a copy of this message | ||
Greetings!
16 Апрель 2003 00:56, Thomas Schulz написал:
> today I had the time to test the new array renderer in the upcoming
> Quickform 3.0. It works fine in combination with the smarty-template I use
> to render my forms.
>
> I missed two things: an flag to detect if the complete form is frozen
> (useful to change the layout in this case) and the separator for grouped
> elements.
> ...
> I hope this is ok and sombody have time to implement this in one of the
> next releases.
OK, I'll probably add these fields to the array. Alhough I must admit that I
don't like the method's names and am not even sure that these methods are
necessary, it is posiible to just access the objects' properties in
renderer...
> FYI: the array renderer works great for a "dynamic" smarty template (like
> ITDynamic.php for ITX/Sigma). I can provide an sample template for the
> docs.
That would be great! Send the template and the script either to Bertrand or to
me, we'll add it to CVS.
> For an "static" smarty template (like ITStatic.php) we need an more simple
> array with element names as key. I will try to write this "ArrayStatic"
> renderer by reusing the toArray() method from Quickform 2.10...
I'd suggest getting a revision 1.1 of QuickForm/Renderer/Array.php from CVS.
It is quite close to old toArray() method and it will take less work adapting
it.