(Cake 1.2)
I'm trying to implement an XML view for my controller, using the XML
helper, however whenever I invoke something like:
pr($xml->serialize($data));
I get a message: "Undefined variable: xml"
I've tried including the helper in my controller and also tried the
Routing technique which automatically invokes the xml helper and in
both instances get the same message. (I also tried copying the xml
helper file from the cake/libs folder to my app's /views/helper folder
and this also doesn't help)
I guess the real question is: How do I know if Cake has loaded a given
helper (a PR dump of $this does show 'Xml' in the list of helpers) and
how can I go about debugging this problem.
Thank you in advance...
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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
To unsubscribe from this group, send email to cake-php+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
No comments:
Post a Comment