DEBUG console feature
| From: | Monte Ohrt | Date: | Fri, 19 Dec 2003 14:52:42 +0000 |
| Subject: | DEBUG console feature | ||
| Groups: | php.smarty.dev | ||
| Request: | Send a blank email to php-smarty-dev+get-2000@lists.php.net to get a copy of this message | ||
This is a feature that has come up in the past but has never been
implemented. I thought I'd run the idea by the dev list before doing
anything.
Right now you can bring up the debug console by putting SMARTY_DEBUG
somewhere in the URL. Sometimes it is not possible to bring up the debug
console in this fashion, such as on the results to a form post.
One way to remedy this is adding the capability to enable/disable the
debug console for the entire browser session. So maybe something like:
http://www.foo.com/foobar.php?SMARTY_DEBUG=on
http://www.foo.com/foobar.php?SMARTY_DEBUG=off
Basically this would set a SMARTY_DEBUG cookie on the browser and then
that value would be used throughout the session to determine if the
console shows up.
My only reservation about this is that it starts a session, which means
it may have to output an HTTP header to the browser. I don't know if it
is smarty's place to be messing with sessions.
Thoughts?
Monte