I have some variables inside a template and I don’t know where I assigned them. I need to know what is inside a particular variable; for instance, say I have a variable in smarty called member. I tried with {debug} but it didn’t work, and no popup was shown.
How can I output/debug smarty variables using something like var_dump() inside the templates?
You can use
{php}tagsMethod 1 (won’t work in Smarty 3.1 or later):
Method 2:
Method 3: