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

Posted by "Cal Henderson" on 08/18/05 03:14

Cal Henderson <cal@iamcal.com> wrote:
: Ivo Jansch <ivo@ibuildings.nl> wrote:
:: 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?
:
: use a capture and then output it?
:
: {capture assign='foo'}{parse $variable}{/capture}{$foo|nl2br}
:
: or for pre-modifying,
:
: {assign var='variable' value=$variable|nl2br}
:
:
: how is your 'parse' compiler different from eval?
:
: http://smarty.php.net/manual/en/language.function.eval.php
:
:
: --cal

 

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

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