{if $app_messages|@count > 0}
{foreach from=$app_messages item=app_message} {$app_message}
{/foreach}
{/if}