I've made my own module, and now I want to add some css for better data presentation. I've got following file structure:
- sigurnijiinternet
-- css
--- siginternet.css
-- templates
--- RedButtonPage.ss
-- code
--- RedButtonPage.php
I've tried including
<% require css(sigurnijiinternet/css/siginternet.css) %>
into template file. Also with calling themedCSS(siginternet.css) function. I've tried calling Requirements class' css and themedCSS functions from init function of RedButtonPage_controller within RedButtonPage.php file:
public function init() {
parent::init();
Requirements::themedCSS("siginternet");
// Requirements::css("/www/sigurnijiinternet/css/siginternet.css");
// parent::init();
}
Notice the variation on order of calling these functions. Furthermore, I've also tried changing user permissions on all mentioned files, but I never get any css included into the resulting html.
Any hints?