Re: [SMARTY-DEV] object problems

From: Date: Tue, 21 Jan 2003 16:32:01 +0000
Subject: Re: [SMARTY-DEV] object problems
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-567@lists.php.net to get a copy of this message
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

« previous php.smarty.dev (#567) next »