XML output

Hi guys,

I would like know how can I make a xml output without a view?

Thanks.

hi,

well, you can just spit it out in the controller and not render a view at all …

–iM

Hi imehesz,

can you show me a exemple?

Thanks.

Just render a xml file exactly as html.

You’ll may need to add header() xml-content in the controller.

http://www.kirupa.com/web/mysql_xml_php.htm

So you can’t render xml views?

I get this error below…

When I add the header(). in the controller.

This page contains the following errors:

error on line 10 at column 3: Extra content at the end of the document

Below is a rendering of the page up to the first error.

hi imehesz.

actually how can we create the xml from controller?is it possible?

because I surely could use that method.

would you kindly share the way with us.

thank you so much.