Hello, I'm playing a little with php: in PHPTAL and found strange behaviour today.
this works without problem: tal:attributes="style php:tal_optIsSet(raport_values, 'rnNNg', 'visibility: visible', 'visibility: hidden')" but this: tal:attributes="style php:tal_optIsSet(raport_values, 'rnNNg', 'visibility: visible;', 'visibility: hidden;')" create such error: [25-Jan-2011 09:35:11] PHP Parse error: syntax error, unexpected ')' in /tmp/tpl_4d3e8b3e_0b6632b524513950284d__gFWk7rxiYezkL0apsH5rLw.php on line 1161 in template in this line is: if (NULL !== ($_tmp_2 = (tal_optIsSet($ctx->raport_values, 'rNhgC',))): ; it looks like adding ";" to string making something really nasty with TAL compilation. Or did I overlooked something in documentation? regards, Robert _______________________________________________ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman/listinfo/phptal