
01-02-2009, 02:11 AM
|
|
 | |
|
|
 X-Man
|
|
Join Date: Jan 2008
Posts: 2,613
|
|
|
[Debug Console] Switching easy between showing variables or files
Hi Guys,
By default in smarty.php $smarty->debug_tpl = "file:debug_templates.tpl";. Setting up this value means showing the template files in the Debugging Console.
I would like to insert a check box in Admin before activating the Webmaster mode. When this box is checked to set up $smarty->debug_tpl = "file:debug.tpl";. This means to switch showing smarty variables instead of template files.
Could anyone help?
__________________
X-Cart Next: Business 5.2 (learning and testing)
X-Cart Classic: Gold and Gold Plus 4.7
Lots of Modules and Customizations
OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux
Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions)
You can catch my ideas here: http://ideas.x-cart.com
|
|