Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

MIME-type in TPL file?

cdavidcdavid New
edited November 2010 in Vanilla 2.0 - 2.8
Dear all,

I am trying to update to version 2.0.14 and I see that the iVanilla theme does not work any more, so I thought I might as well switch to something better. So, I've chosen the default theme, but there is only a default.master.tpl (no default.master.php) in views/ ...

The problem is that I need to serve my webpages with MIME-type application/xhtml+xml , which I would put in default.master.php as
<?php $mime="application/xhtml+xml"; $charset="utf-8"; header("Content-Type: $mime;charset=$charset"); echo '<?xml version="1.0" encoding="utf-8"?>'; ?>

Is there a way to do this too in a TPL file?


Sign In or Register to comment.