Return to Snippet

Revision: 69140
at April 23, 2015 22:28 by federaik_


Initial Code
En /protected/config/main.php
'clientScript'=>array(
        'scriptMap'=>array(
                'jquery.js'=>false,
                'jquery.ajaxqueue.js'=>false,
                'jquery.metadata.js'=>false,
            ),
        ),

En protected/views/layouts/main.php

<?php
        echo CGoogleApi::init();
        echo CHtml::script(
        CGoogleApi::load('jquery','1.3.2') . "\n" .
        CGoogleApi::load('jquery.ajaxqueue.js') . "\n" .
        CGoogleApi::load('jquery.metadata.js')
    );
    ?>

Initial URL

                                

Initial Description
Override yii's jquery files and load your own.

Initial Title
Load own jquery files on YII framework

Initial Tags
google, jquery

Initial Language
PHP