|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
dthought Smarty Regular
Joined: 21 Apr 2003 Posts: 55 Location: Melbourne, Australia
|
Posted: Sun Feb 04, 2007 11:47 pm Post subject: Debugger support for multi-site use |
|
|
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 |
|
Back to top |
|
|
|
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
|