I think someone has already asked the question about where the best or how to store images that are used in the code and CSS.
I personally keep it all in the folder: /protetsted /components/assets/images/
Use the code as follows:
$loadingImage = Yii::app()->assetManager->publish(Yii::getPathOfAlias('application.components.assets.images').'/ajax-loader.gif');
But I think it is somehow wrong and too complicated.
Or how to use the image data to the CSS?
p.s. I beg your pardon for probably a very stupid