I connect the css file in the following way:
$pathToCss = CHtml::asset(Yii::getPathOfAlias('css')); $clientScript->registerCssFile($pathToCss . '/nyroModal.css'); Inside this file there are links to the following images:
background: #FFF url(../img/ajax-loader-large.gif) no-repeat; The result is a picture trying to load at:
assets / img / ajax-loader-large.gif
css address:
assets / namePath / nyroModal.css
How can I resolve the situation so that I link to the right folder without changing the css file or transferring it to other folders?