I have several layouts, that share a common set of variables. At the moment I have hacked a solution together that gets the job done, but I am sure there is more elegant way to do it.
Here is how I currently share view variables between layouts
function onStart(){
include_once 'themes/website/layouts/include_common_view_vars.php';
/**
Additional $this['lucky_poker'] params here for the specific layout
*/
}
where the include file has all my common addCSS and addJS files etc.
Any better ideas?
PS I read the Question about sharing variables --- and --- I did search the docs but didn't see what I wanted