dump

   Purpose

This tag can be used to dump the contents of any Smarty variable in a more readable format. This is useful for debugging, and editing templates, to know the format and types of data available.

   Usage

Insert the tag in the template like {dump item='the_smarty_variable_to_dump'}.

   Parameters

  • item (required) - The Smarty variable to dump the contents of.
  • maxlevel - The maximum number of levels to recurse (applicable only if recurse is also supplied. The default value for this parameter is 3
  • nomethods - Skip output of methods from objects.
  • novars - Skip output of object members.
  • recurse - Recurse a maximum number of levels through the objects providing verbose output for each item until the maximum number of levels is reached.
  • (optional) assign (string) - Assign the results to a smarty variable with that name.