Open alfredleo opened 11 years ago
Sass.php after generating style uses wrong slash in Windows. So that firefox can't read the file.
Yii::app()->clientScript->registerCssFile($url . DIRECTORY_SEPARATOR . $dstFilename);
I changed this to this code so firefox now works fine.
$cssUrl = $url . DIRECTORY_SEPARATOR . $dstFilename; Yii::app()->clientScript->registerCssFile(str_replace('\', '/', $cssUrl));
Please take a look.
Main idea is that we should not use DIRECTORY_SEPARATOR in urls. Yii::app()->clientScript->registerCssFile($url . '/' . $dstFilename);
This is also a fix if $url does not contain DIRECTORY_SEPARATOR
Sass.php after generating style uses wrong slash in Windows. So that firefox can't read the file.
Yii::app()->clientScript->registerCssFile($url . DIRECTORY_SEPARATOR . $dstFilename);
I changed this to this code so firefox now works fine.
$cssUrl = $url . DIRECTORY_SEPARATOR . $dstFilename; Yii::app()->clientScript->registerCssFile(str_replace('\', '/', $cssUrl));
Please take a look.