Re: [PHPTAL] callback?

2010-10-01 Thread GRolf
and how can I solve this if I want to use it in my tal:repeat? e.g. for a Client, who has (potentially) multiple invoices tr tal:repeat=client clients td${client/name}/td tdspan tal:repeat=invoice client/invoices${invoice}tal:block tal:condition=not:repeat/invoice/end,/tal:block/span/td /tr

Re: [PHPTAL] callback?

2010-06-18 Thread Kornel LesiƄski
On 18-06-2010 at 14:46:13 GRolf ger...@pictureparking.com wrote: let's say I have a query that will fetch employees from a table. every row has a field department_id. when looping through this array in my template, is there a way to call a callback function that will fetch the department's