Hi guys,
I would like know how can I make a xml output without a view?
Thanks.
Page 1 of 1
XML output
#2
Posted 28 September 2009 - 03:55 PM
hi,
well, you can just spit it out in the controller and not render a view at all ...
--iM
well, you can just spit it out in the controller and not render a view at all ...
--iM
It’s done, the great act of creation.
The maker rests. The wheel’s in motion.
-- Imre Madách
check out Yii Themes at http://yiithemes.mehesz.net
The maker rests. The wheel’s in motion.
-- Imre Madách
check out Yii Themes at http://yiithemes.mehesz.net
#4
Posted 28 September 2009 - 05:37 PM
Just render a xml file exactly as html.
You'll may need to add header() xml-content in the controller.
You'll may need to add header() xml-content in the controller.
#7
Posted 04 August 2011 - 12:37 PM
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.
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.
#8
Posted 12 October 2011 - 01:41 AM
imehesz, on 28 September 2009 - 03:55 PM, said:
hi,
well, you can just spit it out in the controller and not render a view at all ...
--iM
well, you can just spit it out in the controller and not render a view at all ...
--iM
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.
thank You
Share this topic:
Page 1 of 1

Help

This topic is locked











