Re: [SMARTY-DEV] object syntax php-style
| From: | Andrei Zmievski | Date: | Wed, 22 Jan 2003 03:23:46 +0000 |
| Subject: | Re: [SMARTY-DEV] object syntax php-style | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-579@lists.php.net to get a copy of this message | ||
On Tue, 21 Jan 2003, Monte Ohrt wrote:
> Since the current CVS is pretty much non-working, I committed back in
> the support for native PHP object syntax.
>
> These are all complicated looking, but valid syntax:
>
> {$foo->bar('hey', $foo, "bar")}
> {myfunc param=$foo->bar('hey', $foo, "bar") param2="blah"}
> {$foo.bar.blah[0].myObj->myMethod($foo.bar[myloop], "fooblah")|upper}
> {$foo->bar->foobar($foo)}
>
> You cannot pass objects as parameters to objects.
> Private method access respects the Smarty security setting.
>
> If we can't find an effective way to handle objects with the current
> Smarty syntax, this may have to be it.
Oh my God... might just as well use {php} .. {/php} or something..
-Andrei http://www.gravitonic.com/
"Claiming Java is easier than C++ is like
saying that K2 is shorter than Everest."
-- Larry O'Brien (editor, Software Development)