why is this not working?


<?php Yii::app()->CJuiWidget->registerCoreScripts('CJuiTabs'); ?>




Property "CWebApplication.CJuiWidget" is not defined.

Try something like this…

<?php Yii::app()->clientScript->registerCoreScript('CJuiTabs'); ?>

It’s registerCoreScript singular, not plural.

nope, it’s still not loading the script and css files you need for the jquery ui tabs

Well, I’m confused as to why you would need to register any scripts to use the CJuiTabs. If you instantiate the widget, I believe it will take care of that on its own. Is it not doing that?

i need more than one widget tabs on a page and the widgets are loaded into the page using a ajax call. using the default widget it’s not working. so i want to load the core files and write my own tabs…

have a look at my other topic: http://www.yiiframework.com/forum/index.php?/topic/7352-cjuitabs-inside-an-cjuiaccordion/

guys how to load the core file for the cjuitabs widget without using the yii cjuitab widget

still didn’t find a solution to load the ui jquery script files using yii framework

In main config file set clientScript component. Look this cookbook

You could try the following, though if you plan on changing the theme, you’d need to point to an alternate CSS.

$basePath = Yii::getPathOfAlias('zii.vendors.jui');

$baseUrl = Yii::app()->getAssetManager()->publish($basePath);

$cs = Yii::app()->getClientScript();