Hi,
I installed CJsTree.php and jsTree (1.0rc2). When I try to run the widget I’m getting the error:
uncaught exception: jsTree cookie: jQuery cookie plugin not included.
In the generated html source file the line loading the jquery.cookie.js in not included indeed.
My question is: where in Yii is determined what jquery plugins are to be loaded? This will probably give me a clue as to why this error occurs.
The error disappears when including the following line in the CJsTree.php file:
$cs->registerCoreScript('cookie');
Does this mean that a widget developer is responsible for loading the necessary jquery plugins? Doesn’t sound too strange…
Thanks!