I just posted that this is probably true as I am using the Debug Toolkit. But if that - and that alone - were the case, wouldn't I still see the output of the default layout when debug = 0? I'm not seeing any headers or anything set in the default layout.
Jeremy Burns Class Outfit [email protected] http://www.classoutfit.com On 22 Mar 2011, at 13:41, euromark wrote: > maybe some debug script internally uses the helper > if debug is off the debug part is not called, therefore no helper > > > On 22 Mrz., 14:14, Jeremy Burns <[email protected]> wrote: >> I have this (simplified) line of code in a view: >> >> echo $this->Number->format($data['distance'], array('places' => 1, >> 'before' => '')); >> >> ...which works fine when debug is > 0. When debug is set to 0, the >> view renders but without a layout (almost as if inside a bare ajax >> layout, but this is not the case and it is not an ajax call). >> >> When trying to work out what was happening (which led me to the Number >> helper) I realised that I am not including the Number helper in my >> controller, so why it works when debug is 2 is a mystery - surely it >> should error? I am equally baffled why it disrupts the layout when >> debug is 0 but not when it is greater than 0. This behaviour >> disappears completely when I echo out the value without the helper. >> >> Anyone seen this before or can give me some pointers? > > -- > 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 related questions. > > > To unsubscribe from this group, send email to > [email protected] For more options, visit this group at > http://groups.google.com/group/cake-php -- 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 related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
