Closed pohnean closed 8 years ago
the problem is fixed in yii2, so we are not going to so anything about it in yii1 as it would break BC. Sorry.
Imagine that you need to publish an asset from a directory called "jquery.complexify" in "your_app/node_modules/" There goes an example:
$baseUrl = Yii::app()->getAssetManager()->publish(Yii::getPathOfAlias('webroot.node_modules') . DIRECTORY_SEPARATOR . 'jquery.complexify');
$cs = Yii::app()->getClientScript();
$cs->registerScriptFile($baseUrl . DIRECTORY_SEPARATOR . 'jquery.complexify.js');
Currently the Yii::getPathOfAlias function will simply translate any dots to DIRECTORY_SEPARATOR.
As a result, the path for folders with dot as a name is not translated correctly. Example: Yii::getPathOfAlias('node_modules.typeahead.js') becomes: