You are here: Compiler tag with modifiers « Smarty Templates Posts « IT news, forums, messages
Compiler tag with modifiers

Posted by Ivo Jansch on 08/17/05 11:12

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I've created a compiler tag called {parse} that I can use like this:

{parse $variable}

The $variable is evaluated as a smarty template (using a string resource
and a compiler tag).

Now, I would like to apply modifiers, both to the result, or to the
variable before it gets parsed.

For example:

{parse $variable|nl2br}

But this doesn't work for some reason. The compiler chokes on the
'$variable|nl2br' part, where in regular non-compiler tags, this works.
How can I make it work?

Greetings,
Ivo

- --
Ivo Jansch <ivo@ibuildings.nl>
ibuildings.nl BV - information technology
http://www.ibuildings.nl
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDAvFv95NUnGFZm9cRAl+UAKCYRU4uYRNC4xeKLO/mf2sOwO61BwCdE7P0
Ck5d+A2skMVMsEyQYS2Sx68=
=OtC0
-----END PGP SIGNATURE-----

 

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

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