Monday, January 14, 2013

Re: DebugKit behaviour

"It allows you to force the toolbar to display regardless of the value ofConfigure::read('debug');. This is useful when profiling an application with debug kit as you can enable the toolbar even when running the application in production mode"

As the documentation states you should only use forceEnable temporarily - if you want to test sth in live mode. In your case it only cloaks the real issue at hand.
So just stay in debug mode (2) and it will work as expected.



Am Montag, 14. Januar 2013 21:37:18 UTC+1 schrieb AD7six:


On Monday, 14 January 2013 20:28:31 UTC+1, McScreech wrote:
On Monday, January 14, 2013 11:12:05 AM UTC-5, McScreech wrote:
Hello, [ Apache 2.2.22 (Win32), MySQL 5.5.21, PHP 5.3.5, cakePHP 2.2.1 ]

I'm having odd (IMO) behaviour from DebugKit - the toolbar only shows up if there are errors on the page and NOT if it renders correctly.

Is this expected behavior? If so, how do I force the DebugKit toolbar to always display?

Not sure what version of DebugKit I am using, how do I check that I am using the correct one for cakePHP 2.2.1?

TIA, McS

Went back over the docs again and found 'forceEnable' option which I've included in AppController $components as follows.
However, I still don't understand why I need this to see the toolbar on a correctly rendered page?
'DebugKit.Toolbar' => array('forceEnable' => true)

Also, went back to the source (https://github.com/cakephp/debug_kit) and got the current version from the master branch, which also did not seem to help without the 'forceEnable' option.

McS



Somewhere in your app you have

    Configure::write('debug', 0);

Find it - and remove it.

AD 

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate