Re: [SMARTY] debug window

From: Date: Tue, 21 Oct 2003 16:50:27 +0000
Subject: Re: [SMARTY] debug window
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10399@lists.php.net to get a copy of this message
In the debug.tpl file look around line 37 - 38 and you'll find this: {rdelim} _smarty_console = window.open("",title.value,"width=680,height=600,resizable,scrollbars=yes"); Replace with: {rdelim} var random_number = Math.floor(Math.random()*1000) title = title + random_number; _smarty_console = window.open("",title.value,"width=680,height=600,resizable,scrollbars=yes"); This will add a 'random' number at the end of the window's title so that every debug window will (hopefully have a different name). Good luck, Janos
Hello, I've got one question, when $smarty->debugging is enabled how to make the debug window appear in the new window each $smarty->display method is called? Right now it all opens in the same window and thus overwritting the old entries from the debug window. Thanks, good luck. Dan __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com


« previous php.smarty.general (#10399) next »