Using Smarty, is it possible to call a method on the return value of a method?

earphonesku91

New Member
I have the Smarty code\[code\]{$obj->foo()->bar()}\[/code\]and Smarty complains about 'unrecognized tag' in the expression. If I change it to just\[code\]{$obj->foo()}\[/code\]it doesn't complain, so I assume the problem is with the fact that I'm calling a method on the result of a method. Is this a limitation of Smarty's parser, or am I missing something else here?I know I can work around this with \[code\]{assign}\[/code\], I just wanted to know if I'd understood the extent of the limitations correctly.
 
Back
Top