This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Add thid method to any controller, say to com_community/disqusimport.php | |
// And run it as http://example.com/index.php?option=com_community&controller=disqusimport&task=export_comments | |
public function export_jom_video() | |
{ | |
header('Content-disposition: attachment; filename="export.xml"'); | |
header('Content-type: "text/xml"; charset="utf8"'); | |
echo '<?xml version="1.0" encoding="' . 'UTF-8' ."\" ?>\n"; | |
echo'<rss version="2.0" |