Trying to include jquery, I added the following line to index.php at the bottom.
Yii::app()->clientScript->registerCoreScript('jquery');
<?php
// change the following paths if necessary
$yii='e:xampphtdocsyiiframeworkyii.php';
$config=dirname(__FILE__).'/protected/config/main.php';
// remove the following line when in production mode
defined('YII_DEBUG') or define('YII_DEBUG',true);
require_once($yii);
Yii::createWebApplication($config)->run();
Yii::app()->clientScript->registerCoreScript('jquery');
?>
This however results in an error at the end of the page.
Fatal error: Call to a member function recordCachingAction() on a non-object in E:xampphtdocsyiiframeworkwebCClientScript.php on line 279
Anyone got an idea what may be causing it? The jquery library seems to load just fine as tested with
$(document).ready(function(){
$("a").click(function(event){
event.preventDefault();
$(this).hide("slow");
});
});
and urls fade out just fine.