Truble, building RSS |
[eluser]iniweb[/eluser]
This is my code: Code: class Rss extends Controller { if Rss.tpl have this content: Code: <?xml version="1.0" encoding="windows-1251"?> Show this error: Quote:Parse error: parse error, unexpected T_STRING in x:\home\igniter.by\www\system\application\views\Rss.tpl on line 1 How to correct?
[eluser]mironcho[/eluser]
Hi, change first line in Rss.tpl to: Code: <?php echo '<?xml version="1.0" encoding="windows-1251"?>' . "\n"; ?> And take a look at: http://www.derekallard.com/blog/post/bui...e-igniter/
[eluser]nirbhab[/eluser]
This is due to wrong RSS encoding, check this link: http://en.wikipedia.org/wiki/RSS <?php header('Content-Type: text/html; charset=utf-8', true); echo '<?xml version="1.0" encoding="utf-8"?'.'>'; echo '<rss version="2.0">'; //code/////// ?> Please check the above URL, it would surely help you out. Thankx for the URL dear |
Welcome Guest, Not a member yet? Register Sign In |