I have
class Page_Controller extends ContentController {
public function init() {
parent::init();
Requirements::customCSS(<<<CSS
#FaderCell1 {
background-image: url($BannerImg1.URL);
}
#FaderCell2 {
background-image: url($BannerImg2.URL);
}
#FaderCell3 {
background-image: url($BannerImg3.URL);
}
CSS
);
}
}
I've even copied/pasted directly out of the docs example and this still results in this error:
Parse error: syntax error, unexpected end of file in /var/www/html/mydomain/mysite/code/Page.php
http://doc.silverstripe.org/framework/en/reference/requirements#custom-inline-scripts