mirror of
https://github.com/smarty-php/smarty.git
synced 2025-07-02 02:11:00 +02:00
* Add converted docs repo * Set theme jekyll-theme-minimal * Removed BC docs, added TOC * Added TOCs, rewrote most important links in documentation. Linked README to new Github Pages site * some link fixes
777 B
777 B
$debugging_ctrl
This allows alternate ways to enable debugging. NONE
means no
alternate methods are allowed. URL
means when the keyword
SMARTY_DEBUG
is found in the QUERY_STRING
, debugging is enabled for
that invocation of the script. If $debugging
is
TRUE, this value is ignored.
<?php
// shows debug console only on localhost ie
// http://localhost/script.php?foo=bar&SMARTY_DEBUG
$smarty->debugging = false; // the default
$smarty->debugging_ctrl = ($_SERVER['SERVER_NAME'] == 'localhost') ? 'URL' : 'NONE';
?>
See also debugging console section,
$debugging
and
$smarty_debug_id
.