oligalma
(Marc Oliveras)
1
I’ve got a nested module, and I’d like to use the layout of the parent module. How can I do that? Neither of the following options work:
public $layout = '//layouts/column1'; // The application layout is used
public $layout = '/layouts/column1'; // The current module layout is used
softark
(Softark)
2
The doc says that you can use the parent module’s layout by setting “layout” to null.
http://www.yiiframework.com/doc/api/1.1/CWebModule#layout-detail
Or, you may want to specify “layoutPath” to point to the parent module’s layout path.
http://www.yiiframework.com/doc/api/1.1/CWebModule#layoutPath-detail