Item 1
Controller
function toxml()
{

echo $this->Xml->elem('count', null, 
array('cdata'=>true,'value'=>'content'));
// generates: <count><![CDATA[content]]></count>

 }

View

<?php
echo $this->Xml->header();
// generates: <?xml version="1.0" encoding="UTF-8" ?>
?>


Error

*Notice*

(8): Undefined property: PostsController::$Xml [*
APP/controllers/posts_controller.php*, line *80*]

*Fatal error*: Call to a member function elem() on a non-object in *
/Applications/MAMP/htdocs/cakephp/app/controllers/posts_controller.php* on 
line *80*



What is the magic keyword to initiate XML? 

-- 
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

Reply via email to