Try using something like:
$sm = $this->getEvent()->getApplication()->getServiceManager(); $helper = $sm->get('viewhelpermanager')->get('headLink'); $helper->prependStylesheet('/css/mystylesheet.css');
in the controller module.
EDIT:
If you want to save the css style in the module, you can either display it in your layout file (section of the chapter), or, all the better, create another route in the module, for example /get/style/[:name] . This route points to another action that returns only text with text / css. More or less:)
source share