I am using the following code to publish my css file to assets.
Yii::app()->clientScript->registerCssFile( Yii::app()->assetManager->publish( Yii::getPathOfAlias('application').'/../css/combo-autocomplete.css' ));
It registers the css successfully and styles are working fine, but the following css class using a image.
.ui-icon {
background-image: url(../images/down-arrow.png);
}
is not loading, it is referred to path inside assets folder. It is looking for the image inside
root/assets/images/
Is there any way to redirect the image url in the css to the original path, because i am not registering my images as assets as of now.
root/images
/root/assets/4s431e/icon.png
? – Tsana