AW: [SMARTY] how to make debug through url?
| From: | Thorsten Schmidt | Date: | Fri, 21 Mar 2003 12:57:51 +0000 |
| Subject: | AW: [SMARTY] how to make debug through url? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-8805@lists.php.net to get a copy of this message | ||
> -----Ursprüngliche Nachricht-----
> Von: Wilhelm Kutting [mailto:wkutting@gmx.de]
> Gesendet: Freitag, 21. März 2003 13:52
> An: smarty-general@lists.php.net
> Betreff: [SMARTY] how to make debug through url?
>
>
> Is it possible to trigger debug on through url like
> www.myhome.com/page.php?debug=on
>
<?php
require 'Smarty.class.php';
$smarty = new Smarty();
if(!empty($_REQUEST['debug']) && $_REQUEST['debug'] == 'on') {
$smarty->debugging = true;
}
else {
$smarty->debugging = false;
}
?>
(Not tested, but I think this should work)
But then every of your visitors will be able to open the debug console...
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>