While stumbling around the internet as you do when pondering a particularly awkward programming challenge, I came across an excellent post on smarty debug with FireBug. This inspired me to pull together a Prestashop module to allow store owners, designers and developers to view indepth debugging data from right within the Prestashop environment.
I think most people working on Prestashop development projects have longed for an easy way of identifying which template variables are set on which page, and although this doesn’t tell you at which point in the page rendering process a variable may be available, it does give an important insight into how to leverage otherwise missed opportunities to enhance a site’s design and functionality, and catch errors.
All credit for the FireBug template has to go to the original author’s post at PHPhulp on Smarty Firebug debug.tpl.
You must install FireBug in your Firefox Browser to use this with the ‘Use FireBug’ module option enabled (default).
*Note: Using Smarty_debug(true); enables grouping so that some of the elements can be collapsed to improve readability.
You may also like: Writing your own PrestaShop Module – Part 1 So you want to write a module? Introduction There has...Writing your own Prestashop Module – Part 3 Storing Module Configuration Introduction In the third part of this...Writing your own Prestashop Module – Part 4 Form Validation and Security Introduction While being sufficiently functional for...Writing your own Prestashop Module – Part 2 Creating a basic module Introduction In this second part of...
Tags: design, developmentPermalink for Article | January 6th, 2010
eBooks on the French Canals, Living Aboard Around the World, La Rochelle Guide Book