In cakephp 2 you could debug from controller before pages is rendered. You 
did get the error of headers already been sent but page rendered after. 
Now in cakephp3 if I debug in controller I get the same error but page 
stops rendering and produces a Fatal error: [RuntimeException] .

Why is that? Can I change that behavior?

On Thursday, February 14, 2013 9:37:03 PM UTC+2, Jeremy Burns wrote:
>
> Looks like you are debugging out some information before the page is 
> rendered. 
>
> Jeremy Burns 
> Class Outfit 
>
> http://www.classoutfit.com 
>
> On 14 Feb 2013, at 18:19:41, Mehrdad Dadkhah <[email protected] 
> <javascript:>> wrote: 
>
> > hi all 
> > 
> > what's the reason of this warning? 
> > 
> > 
> > Warning (2): Cannot modify header information - headers already sent 
> > by (output started at 
> > /home/hy4wtsgf/public_html/lib/Cake/Utility/Debugger.php:780) 
> > [CORE/Cake/Network/CakeResponse.php, line 398] 
> > Code Context 
> > 
> > setcookie - [internal], line ?? 
> > CakeResponse::_setCookies() - CORE/Cake/Network/CakeResponse.php, line 
> 398 
> > CakeResponse::send() - CORE/Cake/Network/CakeResponse.php, line 375 
> > Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 168 
> > [main] - APP/webroot/index.php, line 92 
> > 
> > how can i resolve it? 
> > 
> > thanks in advance 
> > 
> > -- 
> > 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 unsubscribe from this group and stop receiving emails from it, send 
> an email to [email protected] <javascript:>. 
> > To post to this group, send email to [email protected] 
> <javascript:>. 
> > Visit this group at http://groups.google.com/group/cake-php?hl=en. 
> > For more options, visit https://groups.google.com/groups/opt_out. 
> > 
> > 
>
>

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to