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?

  • and where are they really? - etki
  • @Etki for real, there is a certain folder in which css / js / img folders lie. It turns out at the address / assets / kkeo32 / css it takes from the css folder, etc. In the old version, this is how it turned out, at the address "../img/ajax-loader-large.gif" - left the css folder, and normally reached img. At the moment, I decided not to use nyroModal, I took another modal window) - IVsevolod

0