But is that much better than
{$foo->bar("p1","p2")}
The second one could be passed as a parameter, but not the first. But
the first one does retain the parameter passing syntax.
I for one would much, much prefer the standard PHP syntax. For starters, this work is already completed by André Rabold in his patch from December 6th [1], and it feels much more natural when you're accustomed to working with objects in PHP.
Also, this method works lovely with all the loops, does modifiers, and works as parameters for existing Smarty functions. After finding this patch, I switched from the CVS version to 2.3.1 with this applied.
[1]
http://news.php.net/article.php?group=php.smarty.dev&article=%3C20021206123252.25458.qmail%40pb1.pair.com%3E
--
David Heinemeier Hansson
http://www.loudthinking.com/ -- Broadcasting Brain