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 actuallyYiiIn my opinion, this mechanism is very good, you can findYiiThere isCAssetManagerClass file is what it does.
YourProtectedFiles in the directory are inaccessible to the client.CssDefined in this directory, andCAssetManagerPublish it to the root directoryAssertDirectory,YiiA name similar201766e17.
After the releaseAssertFiles in the directory, which can be accessed by the client.