[eluser]BDT[/eluser]
Hey!
I don't know this has been discussed somewhere before
I use this solution to generate template box from module (example: login box, or available languages box with select links)
If the box need additional css what is used only for the box i call $this->tpl->addModuleCss($ModuleName,'BoxCss.css'); and my template generator system (based in smarty) insert the header tags when i call (from the actual controller function) $this->DisplayLayout();
I have a helper in the module helpers directory.
From another controller i call $this->bdtbase->loadModuleHelper($Module,$HelperName);
In helper i use this:
$Module = 'users';
$ModulAssigns['Module'] = $Module;
$Modul = Modules::load($Module);
$SideUserBox = $Modul->load->view('OldalSavUserBox',$ModulAssigns,true);
return $OldalSavUserBox;
In the OldalSavUserBox view: $this->tpl->addModuleCss($Module,'BoxCss.css'); but the "master" tpl class not know this module css
Currently i reading php.net... and if i found solution, i will share.
Sorry my bad english