Re: [SMARTY-DEV] tokens as input to modifiers

From: Date: Wed, 07 Jul 2004 22:42:08 +0000
Subject: Re: [SMARTY-DEV] tokens as input to modifiers
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2455@lists.php.net to get a copy of this message
--- messju mohr <messju@lammfellpuschen.de> wrote: > On Wed, Jul 07, 2004 at 01:03:20PM -0700, boots wrote: > > Should tokens be allowed to be passed to modifiers? The following > does > > not seem to work: > > > > {null|foo}, {true|foo}, etc... > > > > Bug or behaviour? > > i think it's intended. "null" or "true" could be registered functions > which makes the above valid syntax. allowing "null" and "true" as > constants would make it ambiguous. Fair enough. Interestingly, the behaviour is not consistent when used as follows: {if null|foo ...} In the latter case, processing continues but in the former case, Smarty dies. xo boots

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