couple of potential bugs in flexy

From: Date: Mon, 19 Jan 2004 13:59:42 +0000
Subject: couple of potential bugs in flexy
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-10223@lists.php.net to get a copy of this message
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. 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));?>"> any ideas? cheers demian

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