Convient way to debug template variables.
Been doing alot of customizations lately, and I really was tired of enabling and disabling the debug/smarty console to take a look at variables available to the .tpl files. A quick and easy way to find those pesky variables is to simply use this line anywhere in your .tpl:
{php}func_print_r($this->_tpl_vars);{/php}You can also take a peek at some of the compiled php files in templates_c/ to get a better idea as well.
Happy X-Cart'ing!
Cart-Lab.com: X-cart Resources, and More!
0 Comments:
Post a Comment
<< Home