Created
November 24, 2019 08:14
-
-
Save akshuvo/a2b31a4b4dd45c4506fe8b255db14bad to your computer and use it in GitHub Desktop.
Prestashop var_dump and print
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Method 1 (won't work in Smarty 3.1 or later): | |
| {php} | |
| $var = | |
| $this->get_template_vars('var'); | |
| var_dump($var); | |
| {/php} | |
| Method 2: | |
| {$var|@print_r} | |
| Method 3: | |
| {$var|@var_dump} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment