Darn, I can't locate what's wrong!
Although I was mostly certain about not having extra space or funky
control code hidden somewhere in the code, I just copied 1.2 RC2 to a
new directory and set up only 3 files for the test - model/controller/
view. And they're like this:
article.php (model):
<?php class Article extends AppModel {}?>
article_controller.php (controller):
<?php
class ArticlesController extends AppController {
function go() {
$this->redirect('/articles/index');
}
function index() {
}
}?>
index.ctp (view):
<?php echo $html->link('GO', '/articles/go'); ?>
Then clicking "GO" from /articles page still gives me:
Warning (2): Cannot modify header information - headers already sent
by (output started at C:\Program Files\Apache Group\Apache2\htdocs
\caketest\app\controllers\articles_controller.php:1) [CORE\cake\libs
\controller\controller.php, line 577]
Damn, I feel very stupid, I've never had this problem with various 1.1
productions (using lots of redirect) in the last years. There can be
no since white space before or after or ctr code etc since I'm setting
my editor any ctr char visible. I may yet somehow stupid in this less
than 10 lines of total code but do feel something ELSE is the problem.
I'm hosting this on local XP with Apache2.0.59/PHP4.3.4, MySQL4.0.20
if this info helps anything.
Could someone suggest me how I could perhaps locate WHERE this damn
header must have been sent?!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---