Cart-Lab Blog

X-Cart & E-commerce related news, resources and tips. Postings by: B00MER of Cart-Lab.com


Friday, March 25, 2005

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!

Blinkbits
co.mments
Delicious
digg
Furl it!
NewsVine
Reddit
Spurl
TailRank
DZone
Google Bookmarks
taggly
Windows Live Favorites
addtoany
technorati



0 Comments:

Post a Comment

<< Home