Adding jQuery to Yii

Hello All,

I am newbie to the beautiful Yii Framework.I want to know is giving link to the jQuery Framework in _form.php is good or I have to make the link in view.php file?

JQuery is added automatically when you use any of the built in widgets.

To add it regardless just add this line to the head section of your layout (default: views/layouts/main.php).

<?php Yii::app()->clientScript->registerCoreScript('jquery'); ?>