Re: [SMARTY] Bug with smarty:nodefaults and arrays in sections?

From: Date: Thu, 03 Jul 2003 12:33:34 +0000
Subject: Re: [SMARTY] Bug with smarty:nodefaults and arrays in sections?
References: 1 2 3 4 5  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9824@lists.php.net to get a copy of this message
Messju Mohr wrote:
{assign var=r2 value=$urls[inhalt1]|smarty:nodefaults|upper} ...
of course strip_tags is applied if you do {$r2} for debugging. you have to do {$r2|smarty:nodefaults} to get the original value of $r2.
Ah, so I see my fault now. The variable is assigned, and then used in the included template. So the modifier works when the var is assigned, but the default modifier is then applied again in the included template. This is what should happen, if you think about it :) Ok, so I have to change the templates... Thanks! Karsten

« previous php.smarty.general (#9824) next »