Output Assets
The headAssets() method will echo the formatted contents of stylesheets, jshead, jsexternal, as well as anything in $config->styles.
If using a minification module and minify is set to true, the engine will output the results of the module's combine/minify function, otherwise it will output all of the assets individually.
Note that the engine will not combine/minify anything in $config->styles, because the location of those assets is unpredictable, and may be located within the modules folder. Also, it is recommended that you avoid using $config->styles and $config->scripts for managing assets because you won't be able to take advantage of the reordering and other methods of the module. Some modules, like Soundmanager2 will auto-populate the $config->styles and $config->scripts arrays, so that module will function properly in the front end when using the theme engine, but those assets will not combine/minify. If you wish to combine/minify when using a module that has dependencies, you should specify the assets using the engine, and then ignore the $config arrays. The engine will include an option to choose to not output $config arrays, though it will output those by default.
The Theme Engine will not minify by default, you will have to choose the setting in the module's config.
Prior to the module config setting, you would do this:
Assuming you have this in your _init.php:
This will output something like this for logged in users:
for non-logged in or non-super admin users, if you have ProCache installed:
Last updated