Yii Framework Forum: Style Cjuidialog - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Style Cjuidialog Cannot apply theme Rate Topic: -----

#1 User is offline   Anthony Gough 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 52
  • Joined: 29-October 12

Posted 10 December 2012 - 11:50 PM

I know there has been a lot of questions on applying themes to widgets and I have read "Theming your Zii Widgets" and tried the various workarounds to no avail.
1. I downloaded "hot-sneaks" theme from ThemeRoller.
2. Created a folder call jqueryui under webapp/css/
3. I copied "hot-sneaks" folder from downloaded file to the newly created jqueryui folder (webapp/css/jqueryui/hot-sneaks)
4. Renamed jquery css file to jquery-ui.css
5. Placed following code in main.php under components
'widgetFactory' => array(
            'widgets' => array(
                'CJuiDialog' => array(
                    'themeUrl' => '/css/jqueryui',
                    'theme' => 'hot-sneaks',
                    'cssFile' => 'jquery-ui.css',
                ),
            ),
        ),

However I cannot get the theme applied to zii.widgets.jui.CJuiDialog. Any suggestions as to what I am doing wrong?
I even tried applying theme directly
$this->beginWidget('zii.widgets.jui.CJuiDialog',array(
    'id'=>'mydialog',
    'themeUrl'=>Yii::app()->request->baseUrl.'/css/jqueryui',
    'theme'=>'hot-sneaks',
    'cssFile'=>'jquery-ui.css',
    // additional javascript options for the dialog plugin
    'options'=>array(
        'title'=>'IMPORTANT ',
        'autoOpen'=>true,
         'modal'=>'true',
        'width'=>'400',
         'height'=>'100',
         'resizable'=>'false',
    ),

  ) );

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users