tags:

views:

15

answers:

0

Hi,

whats wrong with my code(don't get values from $nArray) ?

{$nArray = array(25, 35, 55)}
{foreach from=$nArray item=nValue}
<option value="{$nValue|escape:'htmlall':'UTF-8'}" {if $n == $nValue}selected="selected"{/if}>{$nValue|escape:'htmlall':'UTF-8'}</option>
{/foreach}