as soon as you invoke a render by yourself inside an action, the default action will be dismissed.
so you could
$this->renderText('<xml ...');
and f.i.
$this->Response->addHeader(array('content-type'=>'text/xml'));
(I highly recommend using a newer version than 0.8)
The problem here is that we're flushing the Response-object. echo'ing is not a way to go. Either render a string with ->renderText() or work in another way directly with $this->Response.
//that would be
$this->Response->addHeader(array(...
$this->Response->body = [...]
You can assign an object to the ->body which implements ->stream() if you must. Otherwise it takes text.
//e.g.
public function stream()
{
echo .... //set implicit flush
}
1 to 6 of 6