One thing to keep an eye out for is some text editors have a "Freehand Editing" mode (TextMate for one) and sometimes inadvertent mouse clicks can add extra spaces after closing tags. You might keep an eye out for a setting like that, I try not to use that editing mode for that reason. Also some ide/code editors have a setting to remove trailing white space, this can be a helpful setting.
I tend to only use debug setting of 2 when I am having issues with queries, otherwise I develop in debug 1 (just shows warnings and notices not sql queries) I have not seen issues with redirects if my warnings and notices are taken care of. If you are it could mean that you have other issues still haunting you (it is close to halloween after all) Sam D On 11/1/06, Syl <[EMAIL PROTECTED]> wrote: > > Wow ! Thanks was it.....I knew I'd be kicking myself for how simple a > solution it would be. I will definately keep it in mind. > > Just as a side note : When I have DEBUG set to 2, sometimes my > redirects don't work as well, so I have to reset it to 0 each time to > make sure that it wasn't the DEBUG that was causing me the problem. > > S > > On Nov 1, 10:58 am, "meek" <[EMAIL PROTECTED]> wrote: > > Well I'm not surely what exactly is going on but I did have a similar > > problem the other day. > > First of all I would recommend keeping DEBUG set to 2 until you've got > > rid of the issue - at least then if there's an error message you'll see > > it. > > My problem was simply some extra whitespace before the <?php tag in my > > controller. The redirect function uses the PHP header function which > > must be called before ANYTHING is sent to the browser. Extra whitespace > > outwith PHP tags in your controller, or in any other file being > > included will prevent the redirect. This a common reason for redirects > > not working. > > > > > -- == S. DeVore (the old fart) the advice is free, the lack of crankiness will cost you --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~----------~----~----~----~------~----~------~--~---
