RE: [SMARTY-DEV] Compiler Code cleanup - new syntax features
| From: | Monte Ohrt | Date: | Wed, 18 Dec 2002 18:52:06 +0000 |
| Subject: | RE: [SMARTY-DEV] Compiler Code cleanup - new syntax features | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-446@lists.php.net to get a copy of this message | ||
Actually I explained that wrong. You cannot pass an object as a
parameter to an object. Otherwise you can use an object as a parameter.
I think you can even do stuff like passing an object as a modifier
parameter.
{myfunk foo=$bar|default:$foo->bar()}
On Wed, 2002-12-18 at 11:59, Lee Coltrane wrote:
> > What is NOT allowed:
> >
> > 2) objects as parameters (as discussed)
> >
> > won't work:
> > {myfunc foo=$func->bar()}
> > {$myobj->foo($blah->bar())}
> >
>
> so...
> {myfunc name=$myobj->getName()}
>
> won't work?
>
>
>
> -lee
--
Monte Ohrt <monte@ispi.net>