dump

We need your assistance to make the documentation accurate, user friendly and understandable. Therefore we welcome any tips or suggestions regarding documentation. Thank you in advance for your contribution.

However, we will not respond to technical support questions submitted using this form. If you are having difficulty with CMSMS and cannot find the solution on this website, please submit your question appropriately on our support forum at: http://forum.cmsmadesimple.org. Please remember to follow the forum rules when posting.

CMS Made Simple™ Partner



   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.