There is no serialize() method in the Xml class. You want to use the
XmlHelper. In that case, add it to your $helpers array and there's no
need to import().

http://api.cakephp.org/class/xml
http://api.cakephp.org/class/xml-helper


On Mar 23, 8:05 am, Carachi <carach...@gmail.com> wrote:
> Hello, I would to ask how can I create a file .xml with the xml cake
> Helper:
> I followed Cake book (7.12); but I can't see my xml page, because
> there is this Fatal Error: Call to undefined method Xml::serialize()
> in var/www........
>
> Here is the function:
> function create_xml(){
>     App::import('Core',array('xml'));
>
>     $xml = new XML();
>     $xml->__construct();
>
>     $settings[a][b]="Hello";
>     $xml->serialize($settings);
>
> }
>
> thanks.

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+unsubscr...@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.

Reply via email to