I am trying to include my cascading style sheet into my TYPO3 extension. I created the extension with “kickstarter”. This is the way I tried to include it:
$this->doc->getPageRenderer()->addCssFile(t3lib_extMgm::extRelPath('myExt') . 'res/css/my_stylesheet.css');
I added that line at the end of the main() method.
So what am I doing wrong? The path including the file does definately exist.
Thank you.
Ok, I could finally solve the problem.
When adding the code right after instancing the “doc” object, everything works fine.