minScript offers 2 different usage modes:
- Everything that is registered through clientScript (including assets) will be automatically processed and served through minScript.
- If there are files that can't be registered through clientScript, a list of files can be passed to minScript manually.
It is very important to keep this in mind:
- CClientScript::registerCssFile() or CClientScript::registerScriptFile() ask for URLs and not file system paths. Make sure you pass URLs to those methods.
- CClientScript::minScriptCreateGroup() asks for file system paths and not URLs. Make sure you pass file system paths to this method. If you use relative paths, please note that those paths will be relative to the path where the Yii entry script file (index.php) is located.
In case something isn't working, take a look inside Yii's application log since minScript will log errors/warnings/infos in there.