Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6916375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:35:40+00:00 2026-05-27T09:35:40+00:00

Yii has a notion of assets — resources such as images, stylesheets and javascript

  • 0

Yii has a notion of assets — resources such as images, stylesheets and javascript that belong to a module. To avoid naming conflicts among modules, Yii publishes a module’s assets, on demand, to a uniquely-named subfolder of the web app’s assets folder.

For example, the project that is auto-generated by yiic serves HTML pages that link to jquery as follows:

<script type="text/javascript" src="/www/myproject/assets/b420fe6b/jquery.js"></script>

How can I change “b420fe6b” into something more readable (while still getting the benefits of assets and modules)? I would like what people see in “view source” to be clean and readable, not just the source code on the server.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:35:40+00:00Added an answer on May 27, 2026 at 9:35 am

    http://www.yiiframework.com/wiki/148/understanding-assets/

    Yii docs explain these Asset urls to be “a unique name created by Yii in a way that won’t conflict with any other module that publishes assets“

    Looks like this is a feature that may not be able to be beautified due to its functional nature as serving as a unique identifier…

    Update:
    However, if you are able to locate all places where your asset urls are referenced in your yii code (including finally the folder name itself) you might be able to change them to something easier on the eyes. (Don’t recommend it though as you never know what you might brake! — and on the 1 in 10,000,000,000 chance that the next asset-url that yii creates is identical to the beautified one lol)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that is built with Yii framework. It has lots of
Which module is better? Has anybody tested either of these modules before? yii-user-management yii-user
I read a book called Yii Application development cookbook which has a chapter that
I'm using the Yii PHP framework which has a function PDO::lastInsertId that's apparently just
So I'm running Yii, which has an application that manages some scientific data. I'm
In Yii, CGridView has it's own background color in the row. But what I
Im creating a Yii app where i will save images into the database. Now
I have a model Animal in Yii which has two relations, mainRace and secondaryRace
I'm a newbie using a book to learn the Yii php framework. It has
I was reading about caching mechanism that Yii implements and possible other frameworks/techniques/databases as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.