The following is the project structure automatically generated by YII: but what is the difference between the assets folder and the CSS folder? It seems that I can call the front-end code in assets and css! What are the differences between these two things?
The following is the project structure automatically generated by YII:
But what is the difference between assets folders and CSS folders? It seems that I can call the front-end code in assets and css! What are the differences between these two things?
Reply content:
The following is the project structure automatically generated by YII:
But what is the difference between assets folders and CSS folders? It seems that I can call the front-end code in assets and css! What are the differences between these two things?
I was moved to the newbie Q & A area. I just saw this question.
This is actuallyYii
In my opinion, this mechanism is very good, you can findYii
There isCAssetManager
Class file is what it does.
YourProtected
Files in the directory are inaccessible to the client.Css
Defined in this directory, andCAssetManager
Publish it to the root directoryAssert
Directory,Yii
A name similar201766e17
.
After the releaseAssert
Files in the directory, which can be accessed by the client.