E
E
EVOSandru62015-01-14 13:53:32
JavaScript
EVOSandru6, 2015-01-14 13:53:32

How to include jquery in yii module?

Good afternoon.

In the client side , Jquery is already included from framework\web\js\source\
I just downloaded the latest one and replaced it. In the client part, the console does not give any errors.

Created an admin module. It contains the layouts folder and the main.php file in it . If jquery is not included in this file, then the scripts associated with it are not processed. If you write

Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl.'/js/jquery-1.11.1.js


That scripts are fulfilled, but the console produces some errors. I'm interested in how to include jquery from framework\web\js\source\ in a module ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladlen Grachev, 2015-01-14
@gwer

Yii::app()->getClientScript()->registerCoreScript('jquery');

It?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question