How do I require an asset group in the themes controller? Theme->requireAsset() only seems to handle single assets, not asset groups.
The asset groups is defined in the application/config/app.php
edit: I use 5.7 and this is an example of my code:
In config/app.php
'assets' => array(
'awesomejs' => array(
array(
'javascript',
'themes/mytheme/js/awesome.min.js',
array('position' => 'H', 'minify' => true, 'combine' => true)
)
),
'greatjs' => array(
array(
'javascript',
'themes/mytheme/js/great.js',
array('position' => 'H', 'minify' => true, 'combine' => true)
)
)
)
'asset_groups' => array(
'myjavascripts' => array(
array(
array('javascript', 'awesomejs'),
array('javascript', 'greatjs')
)
)
)
In page_theme.php
$this->requireAsset('javascript', 'myjavascripts');
this does not work since myjavascripts
is an asset_group but all I seems to be able to do is require a specific asset in my theme, not an entire group.