tm1813
(Tm1813)
1
Hi, my root pages worked for a theme choice in config/main.php
However, when I defined a module, the pages under the module restored to the default theme. I saw a reference from
http://www.yiiframework.com/forum/index.php/topic/17055-how-to-theme-a-module/
but
Yii::app()->theme = ‘themename’;
in the module php (extends CWebModule) init() or beforeControllerAction, none of them work! Can anyone help me?
alirz23
(Ali Raza)
2
did you try to set the layout to theme layout in your module
in your module
...
public $layout = 'path.to.your.theme.layout';
...
tm1813
(Tm1813)
3
It does not work for::
public $layout = ‘//themes/blackboot/views/layouts/main’;
public $layout = ‘//themes/blackboot/views/layouts/column1’;
public $layout = ‘//themes/blackboot/views/layouts/’;
public $layout = ‘/themes/blackboot/views/layouts/main’;
public $layout = ‘/themes/blackboot/views/layouts/column1’;
public $layout = ‘/themes/blackboot/views/layouts/’;
what else should I try?