Yii generated project assets and CSS folder doubts

Source: Internet
Author: User

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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.