class StructuredProduct_Controller extends Page_Controller {
function init(){
parent::init();
}
function index() {
return $this->renderWith(Array("ProductPageRDFa", "PageRFDa"));
}
}
For the most part, this works. Unexpected result: extra two blank lines above the output:
"
<?xml version="1.0" encoding="UTF-8"?>
"
The template does not contain these blank lines. I did try to use the $allowed_actions array -- but it did not produce the desired result.
Blah blah blah:
I have installed this version of Silverstripe on my local computer for testing. I am trying to test using RDFa on a subsection of the site, and thus need a different doctype from the rest of the site. I thought I could use renderwith() for that purpose. For the most part, it works well, with the exception of these two blank lines.
Are these two blank lines a bug? Is it something I've done? How do I get rid of them?
Thanks!