[PHPTAL] concatenate string
Christoph Frick
frick at sc-networks.com
Mon Aug 4 09:48:15 CEST 2008
On Mon, Aug 04, 2008 at 11:11:10AM +1200, anru chen wrote:
> person->id = 1;
> person->name=xxxx;
> person->email = "who at email.com".
>
> my question is how can i do some thing like this:
>
> <button name="sub" value="" ><button>
> I want to set the button value equal to person/id . "_". person/name (1_xxxx)
<button name="sub" value="SomeName" tal:attributes="value string:${person/id}_${person/name}" />
on the other hand - if the value there is app releavant then you might
generate it in php.
--
cu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
Url : http://lists.motion-twin.com/pipermail/phptal/attachments/20080804/a71717ca/attachment.pgp
More information about the PHPTAL
mailing list