I am developing a project with Yii.
I need to use jquery ui on many pages of site. So I add jquery core library and jquery ui library in the layout of site to have a
add this code with yours path to js in head.php
clientScript->scriptMap = array('jquery.js'=>'/js/jquery-3.3.1.js') : Yii::app()->clientScript->scriptMap = array('jquery.min.js'=>'/js/jquery-3.3.1.min.js') ?> getClientScript()->registerCoreScript('jquery'); ?>