php - Assets in Yii Framework -


can explain in brief use of assets folder in yii framework. new yii framework

many newcomers ask: "what assets folder?", , answer "mostly nothing".

  • it's important directory writable webserver user yii can publish resources there when needed.
  • when project has multiple versions (production, testing, development, etc.) not copy assets/ folders 1 area another; allow yii deploy them automatically in each area.
  • do not manually edit file under assets/ - if have real need make change, find publishing module, edit source, delete subfolder under assets/, , let yii re-publish updated files.
  • do not reference names under assets/ folder directly (say, @ other module's assets). if need use that
  • do not add contents of assets/ folder source-code control system; these files have master source in other places.
  • it safe delete under assets/. yii re-publish assets if not found under assets/.

additional info


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -