If I moved the exact code I’m using into the layouts/main.php file and just stick it up in the head, it works fine. I mean, it’s the most basic hello world jquery script. When I go into the source, it shows up just fine, but firebug shows it as an error.
public function run()
{
parent::run();
$this->registerClientScript();
}
public function registerClientScript()
{
$cs=Yii::app()->getClientScript();
$cs->registerCoreScript('jquery');
$cs->registerScriptFile('/project/js/stjava.js');
}
Still is giving me the bogus javascript error. It’s probably something stupid, but idk.