Re: [PHPTAL] callback?

2010-10-01 Thread Kornel Lesiński
On 1 Oct 2010, at 09:37, GRolf wrote: > 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" > > > ${client/name} > ${invoice} tal:condition="not:repeat/invoice/end">, > > > > this works fine if I retrieve all invo

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" ${client/name} ${invoice}, this works fine if I retrieve all invoices before, but can I do it without looping through all clients in PHP first, if I'd have a functi

Re: [PHPTAL] callback?

2010-06-18 Thread Kornel Lesiński
On 18-06-2010 at 14:46:13 GRolf 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 name from an other

[PHPTAL] callback?

2010-06-18 Thread GRolf
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 name from an other table? _