Re: Re: HTML_Template_Flexy + QuickForm
| From: | Alan Knowles | Date: | Thu, 17 Jul 2003 04:43:41 +0000 |
| Subject: | Re: Re: HTML_Template_Flexy + QuickForm | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-6635@lists.php.net to get a copy of this message | ||
This is really good.
can you rename the files/classes to match PEAR standards:
FlexyRenderer.php/HTML_QuickForm_Renderer_Flexy
-> Flexy.php/HTML_QuickForm_Renderer_Flexy
QuickformFlexyElement.php/QuickformFlexyElement
-> FlexyElement.php/HTML_QuickForm_Renderer_FlexyElement
QuickformFlexyForm.php/QuickformFlexyForm
-> FlexyForm.php/HTML_QuickForm_Renderer_FlexyForm
ObjectRenderer.php/HTML_QuickForm_Renderer_Object
-> Object.php/HTML_QuickForm_Renderer_Object
?? should this be FlexyObject - although it's perfectly generic as it is.. - comments Alexy/Bertrand?
Alexy/Bertrand - did you want this in Quickforms CVS tree? - next step CVS account for Ron? - It would be best if he maintains it..
Regards
Alan
Ron McClain wrote:
Take a look in-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.comhttp://mixtli.one11.net/~mixtli/QuickFormsFlexyTry running the test form, then take a look at the template. You can see all the source by clicking on the .txt versions. I've written a renderer for flexy based on the one for smarty. As with smarty, you can use the Object renderer for dynamic templates (i think, haven't tried it), and the flexy renderer for static ones. I'm happy to add it to the quickforms package if the Quickforms and Flexy maintainers wish. -Ron Alan Knowles wrote:Lubos Kmetko wrote:Hi, I'd like to learn to use QuickForm with Flexy or Xipe. I didn´t find any QuickForm rendered for Xipe, but I found QuickForm Wrapper for Flexy in Flexy dir. Can you give me short advice how to use it or references to some docs or examples?There are none, QuickForms support has been removed from Flexy in CVS, and any support will be probably in the same Format as other renders in Quickforms (Roc McClain is looking at this) Flexy's new core uses a lightweight formelement=>php object layer, which I believe is far more flexible and is purely focused on rendering. Unfortunatly documentation is a bit thin at the moment.. - on my Urgent TODO list..My other problem is that when I tried to use HTML_Template_Flexy (0.4.2) I got: Fatal error: Undefined class name 'pear' in ... \pear\PEAR\HTML\Template\Flexy.php on line 126.you need to require_once 'PEAR.php' (fixed in CVS) I installed Flexy manuallyas I don´t see the package among other packages when using PEAR Installer on Windows but I suppose I copied Flexy to corret directories. Then, when I add require_once 'PEAR.php' to beginnig of Flexy.php, it runs further but I got another Fatal error: Call to undefined function: gettext() in ... \pear\PEAR\HTML\Template\Flexy\Token\Text.php on line 98. Finally when I comment those gettext() function calls in Text.php, Flexy works. (I use Flexy examples from PEAR Manual)Have fixed that in the CVS version - it now checks for gettext (which is part of the gettext extension = see www.php.net/gettext) and just skips any translation call if it is not found.Why this happens? Is something wrong with my instalation or with Flexy?Nope :) - but they are great bug reports :) Regards AlanThanks for advice, Lubos Kmetko