Re: [SMARTY-DEV] DEBUG console feature
| From: | Thomas Lutz | Date: | Fri, 19 Dec 2003 15:27:47 +0000 |
| Subject: | Re: [SMARTY-DEV] DEBUG console feature | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-2001@lists.php.net to get a copy of this message | ||
Monte Ohrt wrote:
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.In my opinion that's a feature smarty should not have in it's default behaviour. I'd say that if someone wants that his smarty setup to remember it's debug state, he should implement that in his very own web application. That's the way I handle it in my pages, when everything is set up for action (page startup), a session var sets debugging of my smarty instance to True or False. And if this session var is changed by a get or post request, it remembers it's state... But that's my session handling class, and I am sure, that no one except this class has something to do with sessions. So if this feature is implemented, let us switch it off, or even better set default to off. Really great template engine, thank you ! Tom