Include jquery in yii

Follow following steps:

1. Open root/protected/views/layout/main.php

2. write <?php Yii::app()->clientScript->registerCoreScript('jquery'); ?> in head section.

3.Test with <script type=”text/javascript”>

$(function(){ alert(“Jquery testing”)});

</script>

contact us