Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "./templates/diet-report.tpl" on line 3 "{if is_array($dietcontent) }" - Unexpected " }"' in ...
I did this:
{if is_array($dietcontent) }
There is something..
{else}
Noope...
{/if}
When i output {$dietcontent} i get "Array". But on pages where i dont get "Array" I wish to output a text.
Why am i getting error?
I even tried in my controller (this above is in template) :
$data['rapportExists'] = is_array($data['dietcontent']) ? true: false;
and then in my template:
{if $rapportExists == false }
noope
{/if}
Still receives the same error unexpected }