Hello guys.
I have the following code:
$this->beginWidget('zii.widgets.jui.CJuiDialog', array(
'id'=>'dialog',
// additional javascript options for the dialog plugin
'options'=>array(
'title'=>'myTitle',
'autoOpen'=>false,
),
'theme'=>'redmond',
));
echo 'myMessage!';
$this->endWidget();
As far as I know this code placed in a view must load jui library automatically but it does not.
It does not work untill I include jui using this code:
Yii::app()->clientScript->registerCoreScript('jquery.ui');
in my layout.
Do I miss anything?