Re: Quickform and templates

From: Date: Mon, 10 Mar 2003 08:29:35 +0000
Subject: Re: Quickform and templates
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-14162@lists.php.net to get a copy of this message
<alan@akbkhome.com> wrote : > Alan Knowles wrote: > >>> I have never used Flexy or Xipe. >>> Alan, do you think this architecture could work with Flexy ? >>> When we will have something up and running with IT, do you feel like >>> implementing something for Flexy ? >>> > Ok, had a look at this today - > > http://cvs.php.net/annotate.php/pear/HTML_Template_Flexy/quickform_integration > _notes.txt?rev=1.2 > > Is a current overview of the plan for flexy integration. - let me know > if you have any comments (does it make any sense :) etc. > > I've got to go through the other elements - have you got any docs > anywhere for Quickforms? - it might save me a bit of work hunting down > the source code for that. Hi Alan, We need a bit more time to get everything sorted out with templates. Alexey has committed a renderer for ITX (that works with his version 2.0 only) and an example in Docs/Renderer/. This uses a Visitor Design Pattern. We are now thinking about a fixed form template along with the block loop template. More to come about this soon. For Flexy, I wonder what's best: have the renderer directly in the /QuickForm/Renderer directory or have it in Flexy itself ? IMO, it make sense to have it in /QuickForm/Renderer. Just a note before you start: Headers (from addHeader()) and Data (from addData()) will probably be converted soon to static elements (from addElement('static')) instead of special elements as it is now. This won't proably change a lot of things in the current renderers implementation. Methods like addHeader and addData will wrap calls to addElement('static'). As for the documentation, I will start writing one when we have templates. At the moment, only the examples (and your own phpdoc documentation) will show you how it works. :( Don't hesitate to ask me or Alexey if you have any troubles. Thanks a lot, Bertrand Mansion Mamasam

« previous php.pear.dev (#14162) next »