Another {assign} possibility?
| From: | Mitch Vincent | Date: | Tue, 29 Oct 2002 17:21:20 +0000 |
| Subject: | Another {assign} possibility? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6267@lists.php.net to get a copy of this message | ||
I'm asking much of this for a friend, but I've run into a lot of this strangeness too.. I don't see any real documentation regarding quotes and such so check this out..
{if $aItem.lastname|lower|truncate:1:"":true ne $letter}
That doesn't behave as expected.
{if $aItem.lastname|lower|truncate:1:"":true ne '$letter'}
That does though..
Is there a list of rules with single/double quotes that I'm over looking?
Oh phooey - I'm always forgetting that the Smarty lists don't reply to the list itself! Glad you got the info. to help, though! :) Scott-Mitch They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.