object syntax php-style

From: Date: Tue, 21 Jan 2003 20:48:26 +0000
Subject: object syntax php-style
Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-571@lists.php.net to get a copy of this message
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. Monte

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