I have a controller function that calls a model function that
generates a well formed array. I want to convert the array to XML and
submit it to a web service. The array is in the same shape as the
example in the guide:
Array
(
[Baker] => Array
(
[0] => Array
(
[name] => The Baker
[weight] => heavy
)
[1] => Array
(
[name] => The Cook
[weight] => light-weight
)
)
)
The guide then tells me to:
pr($xml->serialize($data));
This isn't rendering anything either via a view or debugging in the
controller/model. I have declared the Xml helper in the controller.
What am I doing wrong?
Secondly, whilst it's useful to push it to a view for testing purposes
I really want to do something with it in the controller. How do I get
an XML file there? Are there any good tutorials anywhere? (!.3 RC3).
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
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
To unsubscribe, reply using "remove me" as the subject.