[PHPTAL] Re: php: modifier and path: arguments

Wallace McGee wallace at petrosys.com.au
Tue Apr 15 01:47:41 CEST 2008


> From: "B. Kamer" <post at bushbaby.nl>
> 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' : '' " />




More information about the PHPTAL mailing list