hans: smarty array mit dynamischen index ansprechen

Beitrag lesen

hallo,

ich muss wie folgt ein array in smarty ansprechen:

{if isset($array[date('j-n')])} ... {/if}

wenn ich das aber mache, bekomme ich immer einer fehlermeldung:

Fatal error:  Smarty error: [in D:\inetpub\htdocs\projekt\templates\template.html line 245]: syntax error: unbalanced parenthesis in if statement (Smarty_Compiler.class.php, line 1263) in D:\inetpub\htdocs\projekt\lib\smarty\Smarty.class.php on line 1088

thx, hans