Actions

Developer Area/Coding guidelines/TPL files

From Mahara Wiki

< Developer Area‎ | Coding guidelines
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Misuse of the function empty() in the template files will cause errors. See more {http://www.smarty.net/forums/viewtopic.php?p=31665&sid=e4101928d307dbc8cac3041e2ae25d0f}

Wrong:

{if empty($artefacts)}
...
{/if}

Good:

{if !$artefacts}
...
{/if}