Debugging

We recommend one of the following ways of outputting assigned variables and content in your Templates.

{debug}

Inserting the {debug} command into your Template will open a new popup window in which you can inspect all variables which are available in Smarty.
When passing large variables to Smarty while {debug} is turned on, it may happen that a blank page gets returned. This is a known Smarty memory issue.

var_dump

You can also use specific PHP commands, like var_dump, within a Template. This way you can dump whole arrays or objects which are then displayed on the page.
  1. {$contentareas|var_dump}