Performance Time (debug variable)

2007-05-02 Thread Alex
Hi, Is it possible to replan the concept of the debug-variable? I need to hide the performance time which is printed (index.php) as a html-comment at the end of each view. The ajax-inplaceeditor handles this comment as a value. what i need is to run in debug=1 mode and to hide the performance

Re: Performance Time (debug variable)

2007-05-02 Thread Chris Hartjes
On 5/2/07, Alex [EMAIL PROTECTED] wrote: Hi, Is it possible to replan the concept of the debug-variable? I need to hide the performance time which is printed (index.php) as a html-comment at the end of each view. The ajax-inplaceeditor handles this comment as a value. what i need is to

Re: Performance Time (debug variable)

2007-05-02 Thread robechar
You can prevent this by adding this code to your app_controller.php beforeFilter function: if ($this-RequestHandler-isAjax()) { $db = ConnectionManager::getDataSource('default'); $db-fullDebug = false; } Make sure you have RequestHandler in your components

Re: Performance Time (debug variable)

2007-05-02 Thread Grant Cox
To the OP: just modify your index.php, removing the html comment. Robechar: the RequestHandler-isAjax only detects Prototype/ Scriptaculous requests, not for any other libraries, and to change the debug you should probably use Configure::write('debug', 0);

Re: Performance Time (debug variable)

2007-05-02 Thread Mandy
Grant: Thank you for pointing out that isAjax works only with Prototype/ Scripaculous. Thats a bummer! BTW, does Configure::write work with cake 1.1.14? Thanks, Mandy. On May 3, 4:13 am, Grant Cox [EMAIL PROTECTED] wrote: To the OP: just modify your index.php, removing the html comment.

Re: Performance Time (debug variable)

2007-05-02 Thread themanfrombucharest
Actually it works with any library that sets the 'X-Requested-With' HTTP header. I'm using it successfully with jQuery in a current project. Cheers! On May 3, 2:13 am, Grant Cox [EMAIL PROTECTED] wrote: To the OP: just modify your index.php, removing the html comment. Robechar: the