Yii Framework Forum: XML output - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

XML output Rate Topic: -----

#1 User is offline   GodFather 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 91
  • Joined: 19-July 09

Posted 28 September 2009 - 02:13 PM

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

Thanks.
0

#2 User is offline   imehesz 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 706
  • Joined: 13-June 09
  • Location:Jacksonville, FL

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
It’s done, the great act of creation.
The maker rests. The wheel’s in motion.
-- Imre Madách

check out Yii Theme Factory at http://yii.themefactory.net
0

#3 User is offline   GodFather 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 91
  • Joined: 19-July 09

Posted 28 September 2009 - 04:27 PM

Hi imehesz,
can you show me a exemple?

Thanks.
0

#4 User is offline   Ismael 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 163
  • Joined: 02-June 09
  • Location:Brazil

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

#5 User is offline   Angéllica Cardozo 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 137
  • Joined: 11-March 09

Posted 28 September 2009 - 06:32 PM

http://www.kirupa.co...sql_xml_php.htm
0

#6 User is offline   isekream 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 16
  • Joined: 12-January 11

Posted 15 January 2011 - 07:57 AM

View Postimehesz, 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


So you can't render xml views?
0

#7 User is offline   64vision 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 24-July 11

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

#8 User is offline   toronto 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 33
  • Joined: 28-June 11

Posted 12 October 2011 - 01:41 AM

View Postimehesz, 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


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
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users