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:

foreach((array)$t as $key => $val) $phptal->set($key,$val);

It cannot be done in a template.

--
regards, Kornel



_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to