diff options
author | Mario <mario@mariovavti.com> | 2022-02-11 09:27:57 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-02-11 09:27:57 +0000 |
commit | 615c9f1cbe2ccf9c33b035bcf04c5bc6bf64c7ed (patch) | |
tree | 9a2eb293fde70e7222957557dbfe6c3ab1df86f2 /vendor/smarty/smarty/docs/programmers/api-variables/variable-debugging-ctrl.md | |
parent | 7d75d0cfbdca9914814dd5c8390a45eaf377b48d (diff) | |
download | volse-hubzilla-615c9f1cbe2ccf9c33b035bcf04c5bc6bf64c7ed.tar.gz volse-hubzilla-615c9f1cbe2ccf9c33b035bcf04c5bc6bf64c7ed.tar.bz2 volse-hubzilla-615c9f1cbe2ccf9c33b035bcf04c5bc6bf64c7ed.zip |
composer update smarty to version 4.1 - new files
Diffstat (limited to 'vendor/smarty/smarty/docs/programmers/api-variables/variable-debugging-ctrl.md')
-rw-r--r-- | vendor/smarty/smarty/docs/programmers/api-variables/variable-debugging-ctrl.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vendor/smarty/smarty/docs/programmers/api-variables/variable-debugging-ctrl.md b/vendor/smarty/smarty/docs/programmers/api-variables/variable-debugging-ctrl.md new file mode 100644 index 000000000..a9355c0a2 --- /dev/null +++ b/vendor/smarty/smarty/docs/programmers/api-variables/variable-debugging-ctrl.md @@ -0,0 +1,20 @@ +\$debugging\_ctrl {#variable.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`](#variable.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](#chapter.debugging.console) section, +[`$debugging`](#variable.debugging) and +[`$smarty_debug_id`](#variable.smarty.debug.id). |