I have question about theming. How can I set different css files for different themes? I can’t find any information how to do this.
I have question about theming. How can I set different css files for different themes? I can’t find any information how to do this.
You can put ur css dir/files under the theme folder eg: /themes/themeName/css/style.css and access it using
Yii::app()->theme->baseUrl.'/css/style.css'
I thought that themes folder is not accessible by users . Because default views are in protected folder.
Thx for your help.
You can publish these css files with AssetManager or create a subdirectory in webroot/css directory with a theme name and access your css this way: Yii::app()->baseUrl.’/css/’.Yii::app()->theme->name.’/style.css’