Re: couple of potential bugs in flexy

From: Date: Wed, 21 Jan 2004 09:04:00 +0000
Subject: Re: couple of potential bugs in flexy
References: 1  Groups: php.pear.general php.pear.general 
Request: Send a blank email to pear-general+get-10258@lists.php.net to get a copy of this message
Demian Turner wrote:
hi alan found a couple of potential bugs in flexy: 1. i tried to include more than one function in the 'valid_functions' element in the options array, it doesn't appear to be recognised. Looking at the HTML_Template_Flexy_Compiler_Standard_Functions class i followed the format suggested on line 88, ie, "fn1 fn2 fn2" with no luck.
I think I removed that, It didnt seem to fit in with the design to well. - AFAIR most of the functionality was put into the <flexy:*** tags.
2. i'm trying to vary a bgnd colour of a table based on a value passed to a template using the code: <table width="100" class="{t.getBgnd(valueObj.isConfigurable)}"> if i use the array equiv, i get a parse error: <table width="100" class="{t.getBgnd(valueArr[isConfigurable])}"> and with an object, the last character of the object property name gets chopped: <table width="100" class="<?php if (isset($t) && method_exists($t,'getBgnd')) echo htmlspecialchars($t->getBgnd($valueObj->isConfigurabl));?>">
Should be fixed in 0.6.3 Regards Alan
any ideas? cheers demian
-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com

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