Re: Chained method calls

messju mohr <[email protected]> Thu, 3 Jan 2008 11:39:48 +0100
Newsgroups gmane.comp.php.smarty.devel
Message-ID <[email protected]>
I'm +1 for adding this, too. I know the reason this was not added to
Smarty is, that this does not work under php4. Smarty would generate
broken php code under php4 when doing {$foo->bar()->baz()}.

I don't think that the possible impact on php4 is such a big
deal. Some template code that did not compile before (Smarty syntax
error) does now throw a php syntax error. But the benefits for php5
are there - and counting the number of requests for this feature the
demand seems high.

greetings
messju

On Sun, Dec 09, 2007 at 01:27:50PM -0200, Diego Feitosa wrote:
>    Hi all,
>
>    Today, working with Smarty, I realized that a simple feature (chained 
> method calls) was not present... Hopefully, after 2 minutes searching at 
> google, I found this patch:
>    http://codepoets.co.uk/smarty_chained_function_calls
>
>    Is there any possibility to include this patch into the engine??
>    I think this will be very usefull :)
>
>    I don't know how much impact this can bring to the entire distribution, 
> but at least here, there's no negative impact.
>
>    Thanks!!  
> -- 
> Diego Feitosa
> www.dnfeitosa.com <http://www.dnfeitosa.com>

-- 
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php