I’m trying to make some changes to a Yii web application developed by somebody else. I’m a “newbie” when it comes to Yii, web application frameworks and MVC in general.
For the moment, I’m just trying to make some simple CSS changes. The CSS file in question is located at:
I did some reading and it seems that Yii auto-generates this ‘b3b6f9e7’ folder, and that in fact I shouldn’t make my changes within this folder, but rather in the desktop.css file located elsewhere, which Yii would then replicate back to the ‘b3b6f9e7’ folder. Am I understanding correctly?
As a newbie, can somebody just tell me how I can get Yii to replicate my changes into this ‘b3b6f9e7’ folder? I read something about it being safe to delete the folders under <webroot>/assets/. How do I get Yii to regenerate these assets?
I’m sure as I continue updating this web application, I will be back to the forum with more questions.
Usually the asset manager is called every time the app is run.
It checks for the requested page whether the registered assets (css, js, etc) are published or not (i.e. whether it is in <webroot>/assets/<hash> or not). When they are already published it will do nothing, and if they are not, it will copy the source files there.
and once I reload the web app in my browser, Yii recreates the just-deleted folder, using the file in which I have made my edits.
I did actually suspect that that would be how it would work, but when I was trying it out the other day, I deleted the entire assets folder, rather than just the subdirectory, and Yii didn’t recreate the assets folder, so I just wanted to clarify.