Re: [SMARTY-DEV] Re: object support
| From: | Andrei Zmievski | Date: | Wed, 22 Jan 2003 03:15:10 +0000 |
| Subject: | Re: [SMARTY-DEV] Re: object support | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-577@lists.php.net to get a copy of this message | ||
On Wed, 15 Jan 2003, Monte Ohrt wrote:
> > $smarty->register_function('themeFoo', array(&$theme, 'foo'));
>
> I don't like the idea of requiring call-time pass-by-reference, many
> installations have it disabled anyways. I'd rather use a separate
> function and do that in the declaration.
That's not a call-time pass-by-reference - it's a valid syntax for
specifying a callable method of object $theme.
-Andrei http://www.gravitonic.com/
Magic 8-ball is much more powerful than we thought. I mean, back in the 70's
it was predicting the nature of software in the 90's -- "Outlook not so good".