Re: [SMARTY-DEV] case-insensitive plugins

From: Date: Mon, 28 Apr 2003 18:03:50 +0000
Subject: Re: [SMARTY-DEV] case-insensitive plugins
References: 1 2 3  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1285@lists.php.net to get a copy of this message
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. -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

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