[SMARTY] nesting object calls in template
Justin Francis <[email protected]>
| Newsgroups | gmane.comp.php.smarty.general |
|---|---|
| Message-ID | <[email protected]> |
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
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php