Re: [PHPTAL] problem with passing object to template

2009-03-16 Thread Kornel Lesiński
On 13-03-2009 at 20:17:53 majkel hosema...@poczta.onet.pl wrote: As we can see almost everywhere I have to use t prefix ${t/classname} in variable. […] How can I get rid of t prefix($tpl-t) and access directly ex: ${classname}? In PHP you could assign all $t's properties as variables:

[PHPTAL] problem with passing object to template

2009-03-13 Thread majkel
I have the following template: div id=table_form form name=${t/classname} id=${t/classname} target=${t/classname}.php lang=PL action=post table class=table_form theadtd colspan=2${t/caption}/td/thead tbody tr tal:repeat=val t/colModel td label

[PHPTAL] problem with passing object to template

2009-03-13 Thread majkel
I have the following template: div id=table_form form name=${t/classname} id=${t/classname} target=${t/classname}.php lang=PL action=post table class=table_form theadtd colspan=2${t/caption}/td/thead tbody tr tal:repeat=val t/colModel td label