Given the following scenario:

a) In an app controller method you do a header redirect to an external
site (I did it directly with header() not with $this->redirect).

b) Since there's no view output, no ctp file exists.

c) The controller method is named somemethod(), not __somemethod().

When Configure Debug > 0, the redirect works fine.

When Configure Debug = 0, the output of default.ctp is built and sent
to the browser up to the very first line that calls a helper, and
there everything terminates. The user sees an empty page or partial
build of default.ctp, and the header redirect never happens.

The work-around is to create an empty somemethod.ctp with just <?php ?
> in it. Then the redirect works fine.

Dewald

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to