Re: [SMARTY-DEV] DEBUG console feature
| From: | messju mohr | Date: | Fri, 19 Dec 2003 15:38:28 +0000 |
| Subject: | Re: [SMARTY-DEV] DEBUG console feature | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-2003@lists.php.net to get a copy of this message | ||
On Fri, Dec 19, 2003 at 08:52:42AM -0600, Monte Ohrt wrote:
> 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?
you don't need to deal with sessions for that. you just need set_cookie() and
the $_COOKIE-array.
smarty should not touch anything session-related. it's too likely to
interfere with the application here.
> Monte