You are here: Removal of support for ! « Smarty Templates Posts « IT news, forums, messages
Removal of support for !

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация