Re: tokens as input to modifiers
boots <[email protected]>
| Newsgroups | gmane.comp.php.smarty.devel |
|---|---|
| Message-ID | <[email protected]> |
--- messju mohr <[email protected]> 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 -- Smarty Development Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php