The following is a project structure that Yii automatically generates:
But what's the difference between a assets folder and a CSS folder? As if I wrote the front-end code in assets and CSS can be called Ah! What difference does the two have?
Reply content:
The following is a project structure that Yii automatically generates:
But what's the difference between a assets folder and a CSS folder? As if I wrote the front-end code in assets and CSS can be called Ah! What difference does the two have?
Was moved to the Novice quiz area, just saw this question.
This is actually Yii the mechanism, personally think this mechanism is very good, you can find that there is a Yii CAssetManager class file, that is, it does this part of the matter.
The files in your protected directory are inaccessible to clients, you can css define them in this directory, and by CAssetManager publishing them to the root directory assert , Yii a folder with similar names is randomly generated 19066e17 .
At this point, the assert files under the Post directory are accessible to the client.