Re: Re: HTML_Template_Flexy + QuickForm
| From: | Ron McClain | Date: | Wed, 16 Jul 2003 16:41:23 +0000 |
| Subject: | Re: Re: HTML_Template_Flexy + QuickForm | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-6633@lists.php.net to get a copy of this message | ||
Take a look in
http://mixtli.one11.net/~mixtli/QuickFormsFlexy
Try 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:-- -- Ron McClain ron@humaniq.comHi, 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