Re: [SMARTY-DEV] Chained method calls
| From: | messju mohr | Date: | Thu, 03 Jan 2008 10:39:48 +0000 |
| Subject: | Re: [SMARTY-DEV] Chained method calls | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-3065@lists.php.net to get a copy of this message | ||
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>