Re: HTML_Template_Flexy + QuickForm

From: Date: Wed, 16 Jul 2003 03:50:53 +0000
Subject: Re: HTML_Template_Flexy + QuickForm
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-6625@lists.php.net to get a copy of this message
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 manually
as 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 Alan
Thanks for advice, Lubos Kmetko


« previous php.pear.general (#6625) next »