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

  • Home
  • SEARCH
  • 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 7913507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:51:36+00:00 2026-06-03T13:51:36+00:00

In Yii, currently all the dependancies for jquery are loading up a local version

  • 0

In Yii, currently all the dependancies for jquery are loading up a local version of jquery, which i believe is 1.6.*, un-minified.

Something along the lines of:

<script src="/assets/2343/js/jquery.js"></script>

I would like to update the core jquery dependancy to use the jquery 1.7.* from google

Basically I would like to include

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"> 

at the bottom of all my pages whenever jquery is a dependancy.

  • 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-06-03T13:51:37+00:00Added an answer on June 3, 2026 at 1:51 pm

    There’s also another method seen in yii’s docs:

    For example, we can include jquery.js from Google servers instead of our own server. To do so, we first configure the scriptMap as follows,

    $cs=Yii::app()->clientScript;
    $cs->scriptMap=array(
     'jquery.js'=>false,
     'jquery.ajaxqueue.js'=>false,
     'jquery.metadata.js'=>false,
     ......
    );
    

    By mapping these script files to false, we prevent Yii from generating the code to include these files. Instead, we write the following code in our pages to explicitly include the script files from Google,

    <head>
    <?php echo CGoogleApi::init(); ?>
    
    <?php echo CHtml::script(
     CGoogleApi::load('jquery','1.3.2') . "\n" .
     CGoogleApi::load('jquery.ajaxqueue.js') . "\n" .
     CGoogleApi::load('jquery.metadata.js')
     );
    ?>
    ......
    </head>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Yii jquery ui tabs default styles: <ul class=ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all> <li class=ui-state-default
In Yii framework, the main config file defines components. one of which is urlManager:
I am currently extending yii-s admin extension, yiiadmin. What would be the easiest way
I am trying to use Jquery Dialog box in place of Java script standard
I'm currently working on a client proposal which is for a web and a
I have a Yii dropdown which loads a table of cities, states, zipcodes, lat
i'm currently learning the yii framework and have read their documentation. but i still
I'm working on PHP & Yii framework. Currently I found that filtering my data
I am developing web application using Yii framework. currently i am in the process
First of all, let me just say that I'm using the PHP framework Yii,

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.