title: How to set up layout for all controllers in Yii module?
body: <p>in my Yii app I have one module called admin, so the module class is AdminModule, it extends the CWebModule class and is located in the AdminModule.php file. According the documentation the CWebModule has a <code>layout</code> property which is shared among all module controllers in case the controllers itself do not have any layout defined.</p>
  
  <p>My controller does not have any layout defined and in AdminModule.php i put this:</p>
  
  <pre><code>$this-&gt;layout='webroot.themes.bootstrap.views.layouts.column2';
  $this-&gt;layoutPath = Yii::getPathOfAlias('webroot.themes.bootstrap.views.layouts');
  </code></pre>
  
  <p>However, my controllers in admin module are still using some other layout, i think it is the one defined in the Controller.php in components directory. Why is that? How do I setup shared layout for a particular module?</p>