|
Posted by Greg Jones on 11/25/05 13:26
Hi,
I'm new to this list, and I'm sure if I searched long enough there'd be
something in an old message, but there is no obvious search facility, so
forgive me and here goes:
We're using Smarty 2.6.5-dev at the moment, which I know is quite a way
behind the current version, but as it's in use in a bigger system,
upgrading it was never felt to be particularly important, until now.
We've had a user experiencing template-based errors (invalid arguments
being passed to a preg_replace in the compiler), so thought upgrading
Smarty would be a good place to start, but it seems that the !
(negation) operator, as in {if !$hasOptions} no longer works, and I
wondered why this is, as I don't exactly relish the thought of changing
all our code.
Perhaps to clarify, it doesn't generate errors about the !, it just
evaluates to true.
So in summary, what can anyone suggest as the easiest way to get a site
that uses ! quite a lot to work with the latest version of smarty?
thanks
Greg
Navigation:
[Reply to this message]
|