bebeboutik/modules/giftvoucher/giftvoucher-json-empty.tpl
Srv Bebeboutik 6c0978166c add modules
2016-01-04 12:49:26 +01:00

14 lines
246 B
Smarty

{ldelim}
{if isset($errors) && $errors}
"hasError" : true,
"errors" : [
{foreach from=$errors key=k item=error name='errors'}
"{$error}"{if !$smarty.foreach.errors.last},{/if}
{/foreach}
]
{else}
"hasError" : false
{/if}
{rdelim}