Answer the question
In order to leave comments, you need to log in
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
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question