Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Debugger support for multi-site use

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
dthought
Smarty Regular


Joined: 21 Apr 2003
Posts: 55
Location: Melbourne, Australia

PostPosted: Sun Feb 04, 2007 11:47 pm    Post subject: Debugger support for multi-site use Reply with quote

One thing I've noticed whilst doing development on two sites at once, both with the Smarty debug console enabled, is that only one site can access the console at once - the other gets an "access denied" error message.

I got around this by changing the three lines of JavaScript creation at the bottom of debug.tpl to:

_smarty_console_{$smarty.server.SERVER_NAME|replace:'.':'_'|replace:'-':'_'}

That should make a fairly nice JavaScript friendly name for the debug console which is unique enough per domain (obviously my.domain and my-domain would become the same, but the chances of needing that are slim I would imagine... perhaps replace one with a double underscore?) - a useful suggestion, I hope! There may be one or two things I've overlooked, so feedback is welcomed, and perhaps this kind of fix might be considered for a future release of Smarty, if it makes sense to Smile
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP