Re: debug level on ajax request

2011-08-27 Thread p r
further reading http://cakephp.lighthouseapp.com/projects/42648/tickets/1941-changing-debug-level-on-runtime -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP r

Re: debug level on ajax request

2011-08-26 Thread p r
thanks this is a good point. i think it is a problem in generally, not only on ajax requests... if (isset($config['debug']) || isset($config['log'])) { $reporting = 0; if ($_this->debug) { this lines from configure config['debug'] is

Re: debug level on ajax request

2011-08-25 Thread stas kim
oops. it's not on boot strap only. my bad. On Thu, Aug 25, 2011 at 12:47 PM, stas kim wrote: > it's probably because of this line > https://github.com/cakephp/cakephp/blob/master/cake/libs/configure.php#L119 > which is executed on bootstrap. meaning even if you change debug level > later in your

Re: debug level on ajax request

2011-08-25 Thread stas kim
it's probably because of this line https://github.com/cakephp/cakephp/blob/master/cake/libs/configure.php#L119 which is executed on bootstrap. meaning even if you change debug level later in your controller it will only effect Debugger class behavior cheers On Wed, Aug 24, 2011 at 11:21 AM, Ben

Re: debug level on ajax request

2011-08-24 Thread Ben McClure
Fixing warnings and notices is not the answer to his question--With debug mode off, he should not be getting such messages displayed. At worse, he should be seeing formatted Cake errors or simply a blank page if something is wrong. Perhaps the warnings/notices/errors are being thrown before you

Re: debug level on ajax request

2011-08-24 Thread p r
yes you're right. but the debug mode is for developing purposes and my question belongs to control the debug mode in app controller. On 22 Aug., 10:28, "Dr. Loboto" wrote: > The best way is to fix that warnings and notices. Good app never > throws this kind of shit. > > On 18 авг, 20:18, p r

Re: debug level on ajax request

2011-08-22 Thread Dr. Loboto
The best way is to fix that warnings and notices. Good app never throws this kind of shit. On 18 авг, 20:18, p r wrote: > yes the Requesthandler is in use and the debug level is set correctly > to 0 but errors and notices doesn't care. > It seems the backtrace is added before the debug level is s

Re: debug level on ajax request

2011-08-18 Thread p r
yes the Requesthandler is in use and the debug level is set correctly to 0 but errors and notices doesn't care. It seems the backtrace is added before the debug level is set in AppController? When i set the debug level in core.php it works as i desired. On 18 Aug., 15:06, mi...@brightstorm.co.uk

Re: debug level on ajax request

2011-08-18 Thread mikek
> Hello, > > could anybody explain this behavior? i set in my app controller > > if($this->RequestHandler->isAjax()) { > $this->layout = 'ajax'; > $this->autoRender = false; > Configure::write('debug', 0); > } > > but notices and err

Re: debug level on ajax request

2011-08-18 Thread mikek
> Hello, > > could anybody explain this behavior? i set in my app controller > > if($this->RequestHandler->isAjax()) { > $this->layout = 'ajax'; > $this->autoRender = false; > Configure::write('debug', 0); > } > > but notices and err

debug level on ajax request

2011-08-18 Thread p r
Hello, could anybody explain this behavior? i set in my app controller if($this->RequestHandler->isAjax()) { $this->layout = 'ajax'; $this->autoRender = false; Configure::write('debug', 0); } but notices and errors are even