Ok i sort of sorted it out... got rid of $xml->header, and instead of just
using $logs = $this->model->find('all'), i did $logs = array('Logs' =>
$this->model->find('all') to create a root element... that worked if logs
contained 1 items.. but if it contains more than 1 item, I got the same
error...
the only thing that would get it near enough to working was $logs =
array('logs' => array('item' => $this->model->find('all'))) - which seems to
me to be needless and ridiculous?
anyone got an example of cakephp 2.0 producing index as XML using
simpleXML/rest that I can have a peak at? duplicating exactly what is in the
documentation doesn't yield any usable results....
On Wed, Oct 19, 2011 at 3:25 PM, zuha <[email protected]> wrote:
> I doubt its the right answer but figured I'd throw it out just in case.
> Have you tried $this->Xml->header(); instead of $xml->header(); ?
> Ignore me if I'm steering you off track.
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php