I'm currently trying to create a feed which will be automatically updated and then use a service like twitterfeed to then push these changes to facebook and twitter.

When I view www.mysite.com/rss I see all of the correct jobs displayed in plain text and not in a hierarchical format but I don't have any other errors to really tell you.

I am using codeigniter and this is the current code which I have within my controller and view.

controller:

view:

收起

The problem may be that you are using the PHP function header("Content-Type: application/rss+xml") to set your content type.

As CodeIgniter does not know you are doing this it too will try and set the Content-Type headder.

Try using the build in $this->output->set_content_type(); method ( ) instead

报告相同问题?