Re: [SMARTY-DEV] case-insensitive plugins
| From: | messju mohr | Date: | Mon, 28 Apr 2003 18:12:07 +0000 |
| Subject: | Re: [SMARTY-DEV] case-insensitive plugins | ||
| References: | 1 2 3 4 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1287@lists.php.net to get a copy of this message | ||
On Mon, Apr 28, 2003 at 02:03:50PM -0400, Andrei Zmievski wrote:
> On Mon, 28 Apr 2003, messju mohr wrote:
> > it is not a feature. it was done, to avoid trouble in the long run.
> > the names for auto-loaded plugins' tags are mapped 1-to-1
> > php-function-names (and that's good), but php-function-names are
> > case-insensitive. so using {Foo} and {foo} in the same template would
> > both acquire smarty_function_foo() as it's implementation. this would
> > call for trouble in two different plugin-files.
> >
> > it wasn't done in a rush. it was carefully decided and now committed.
> >
> > no bloat and no features where intended here.
>
> Fine, go ahead.. no one heeds the warnings anyway.. as with accessing
> object methods.
did you follow, how are they are done in the compiled tpl? i
accelerated the calls to functions in the first place and added the
methods then. they are fully optional, fully transparent and had
absolute minimal impact on smarty.
> -Andrei
> http://www.gravitonic.com/
>
> What's hard, in hacking as in fiction,
> is not the writing, it's deciding what to write.
> -- Neal Stephenson
>
> --
> Smarty Development Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php