From: David <da...@df...> - 2004-04-24 10:26:30
|
Hello, regarding the proposal for a <fs:ifErrors> tag. Handling of errormessages in the template is rather inflexible atm. There's no possibility to loop all messages for example. Hooking in to smarty somehow and having a $smarty.formsess variable with at least two keys 'values' and 'errors' would be great. Then you could simply do {foreach from=$smarty.formsess.errors item="error"} .. {/foreachelse} Form doesn't have any errors {/foreach} (I just don't know how that would work when you want to use that var before the form tag is openend and you don't create a formsess object in the php code, because that object would only be createt with the opening of the form tag) What do you think about that? - david |