I am new to yii framework... so if u can help me with the following problem i would be grateful.
I have this all UI with the help of twitter-bootstrap complete. Now i want to integrate it into yii framework .
while integrating this a problem with jquery has occured.My UI without framework works fine. with all the script tags as follows
<script src="<?php Yii::app()->request->baseUrl?>/assests/js/navigation.js"></script>
<script src="<?php Yii::app()->request->baseUrl?>/assests/js/bootstrap/bootstrap-affix.js"></script>
<script src="<?php Yii::app()->request->baseUrl?>/assests/js/bootstrap/bootstrap-alert.js"></script>
<script src="<?php Yii::app()->request->baseUrl?>/assests/js/bootstrap/bootstrap-tooltip.js"></script>
<script src="<?php Yii::app()->request->baseUrl?>/assests/js/bootstrap/bootstrap-dropdown.js"></script>
<script src="<?php Yii::app()->request->baseUrl?>/assests/js/bootstrap/bootstrap-tab.js"></script>
<script src="<?php Yii::app()->request->baseUrl?>/assests/js/bootstrap/bootstrap-button.js"></script>
<script src="<?php Yii::app()->request->baseUrl?>/assests/js/bootstrap/bootstrap-collapse.js"></script>
<script src="<?php Yii::app()->request->baseUrl?>/assests/js/bootstrap/bootstrap-fileupload.js"></script>
<script src="<?php Yii::app()->request->baseUrl?>/assests/js/bootstrap/bootstrap-inputmask.js"></script>
<script src="<?php Yii::app()->request->baseUrl?>/assests/js/select2/select2.min.js"></script>
<script src="<?php Yii::app()->request->baseUrl?>/assests/js/bootstrap/bootstrap-tagmanager.js"></script>
<script src="<?php Yii::app()->request->baseUrl?>/assests/js/bootstrap/bootstrap-typeahead.js"></script>
<script src="<?php Yii::app()->request->baseUrl?>/assests/js/jquery.form.js"></script>
<script>
$('.demoTabs a').click(function (e) {
e.preventDefault();
$(this).tab('show');
})
</script>when i use the same with yii using the script tags the jquery wasnt functional ..(jquery tabs in my case).I have heard the a script should be registered before using it . but wasnt able to follow the usage properly . So i need help with this integration problem. That is how to register scripts instead of using <script tags>
Thank you ..

Help













