Posted by Justin Francis on 09/09/05 19:59
I am trying to nest object calls in the template. For example:
{{$obj->getA()->getB()}}
{{foreach from=$obj->getA() item=item}}
The former yields "unknown tag" and the latter translates the "from"
argument into $obj."->getA()". I looked in the Smart_Compiler.class code
and found that it is explicitly designed so that only one level of
object method calls can me made.
Is there a workaround for this? Can anyone shed light on why this was
implemented this way?
Justin Francis
Navigation:
[Reply to this message]
|