From: "B. Kamer" <[EMAIL PROTECTED]>
Subject: [PHPTAL] php: modifier and path: arguments

i am wondering how to do the following. It cannot be hard but i am unble to do this

execute an php function with tal path values as arguments

<b tal:content="php: strtoupper(${configItem.name})">NAME OF DOMAIN</ b>: ${configItem/value}

I seem to be working with arrays alot and you reference them like this:

in php:
$something['and']['another'] = "bingo";


in phptal:

<span tal:content="something['and']['another']" tal:attributes="class php:something['and']['another'] == 'bingo'? 'highlight' : '' " />


_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to