Hello, everyone. I’m getting problems regarding the layout of my CJuiWidgets. Their corresponding CSSes or themes don’t render when I call them, whether I insert a new data or update an existing one. Though, in some instances, the css works. Is it because of the URL? Here are some of my codes in my config/main:
'widgetFactory'=>array(
'widgets'=>array(
'CJuiDialog'=>array(
'themeUrl' =>Yii::app()->request->baseUrl.'../../css',
'theme' => 'nps_theme',
'cssFile'=>'jquery-ui.css',
),
'CJuiButton'=>array(
'themeUrl' =>Yii::app()->request->baseUrl.'../../css',
'theme' => 'nps_theme',
'cssFile'=>'jquery-ui.css',
),
//I have a separate cssFile for GridView
'CGridView'=>array(
'cssFile'=>Yii::app()->request->baseUrl.'../../css/widgets/gridview/styles.css',
),
)
)
I know this Yii::app()->request->baseUrl.’../../css’ doesn’t look right. There are no dots and slashes (../../) because it already points to the specific folder. Or I’m just wrong? Please enlighten me.
Any good souls?