Ok, great.
I managed to get what I want using lowpass advice.
$this->RequestHandler->renderAs($this, 'xml');
$this->viewPath = 'Events';
$this->set('event', $event);
$viewdata = $this->render('view');
print $viewdata;
But resetting the $this Controller to normal variables is rather
annoying and a
Hello,
Unfortunately the output format (in my variable) is still not the REST XML.
Any other idea?
Thanks
Christophe
On Sat, Apr 28, 2012 at 6:31 AM, lowpass wrote:
> I don't know if this is all you need but these might help:
>
> $this->response->type('xml');
> $this->viewPath = 'events';
> $t
I don't know if this is all you need but these might help:
$this->response->type('xml');
$this->viewPath = 'events';
$this->view = 'view'; // assuming app/views/events/view.ctp
On Fri, Apr 27, 2012 at 2:45 AM, Christophe Vandeplas
wrote:
> Hello,
>
>
> ( using CakePHP 2.1 )
> I'm building an ap