|
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 |
Nickske00 Smarty n00b
Joined: 06 Sep 2015 Posts: 2
|
Posted: Sun Sep 06, 2015 5:05 pm Post subject: Multiple debug consoles |
|
|
Hi,
I just updated my smarty installation to the latest version (3.1.27) and now I'm getting a new debug console for every page I visit.
I looked in the changelog and came across this:
Quote: | - new feature
$smarty->debug = true; => overwrite existing Debug Console window (old behaviour)
$smarty->debug = 2; => individual Debug Console window by template name |
So I thought setting '$smarty->debug = true' would do the trick, but all I'm getting is a 'Notice: Undefined property: View::$debug in path\to\Smarty.class.php on line 1702'
Does someone know the solution for me? |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Sun Sep 06, 2015 10:47 pm Post subject: |
|
|
Oh. There is a typo.
The correct property name should be
$smarty->debugging |
|
Back to top |
|
Nickske00 Smarty n00b
Joined: 06 Sep 2015 Posts: 2
|
Posted: Mon Sep 07, 2015 5:19 pm Post subject: |
|
|
Oh thanks!
But just setting it to true (like I used to do) also creates multiple debug consoles. You need to set it to '1' if you only want one. |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Mon Sep 07, 2015 7:21 pm Post subject: |
|
|
The new mode does control the number of debug windows only for multiple display() or fetch() calls within same script.
That you get multiple window when you call different pages was not intended.
I will change that in the upcoming 3.1.28 release. |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Mon Sep 14, 2015 10:30 pm Post subject: |
|
|
The fix is now already on github in the master branch |
|
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
|