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

Multiple debug consoles

 
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 -> General
View previous topic :: View next topic  
Author Message
Nickske00
Smarty n00b


Joined: 06 Sep 2015
Posts: 2

PostPosted: Sun Sep 06, 2015 5:05 pm    Post subject: Multiple debug consoles Reply with quote

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? Smile
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Sun Sep 06, 2015 10:47 pm    Post subject: Reply with quote

Oh. There is a typo.

The correct property name should be
$smarty->debugging
Back to top
View user's profile Send private message
Nickske00
Smarty n00b


Joined: 06 Sep 2015
Posts: 2

PostPosted: Mon Sep 07, 2015 5:19 pm    Post subject: Reply with quote

Oh thanks! Smile

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. Razz
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Mon Sep 07, 2015 7:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Mon Sep 14, 2015 10:30 pm    Post subject: Reply with quote

The fix is now already on github in the master branch
Back to top
View user's profile Send private message
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 -> General 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