title: How do I access Layout object in Zend Framework plugin?
body: <p>I am trying to use a layout for each actions in a controller. For example, I have three actions in index controller. Those are indexAction, testAction, and welcomeAction. I created three xml layout files. index.xml, test.xml, and welcome.xml. Finally, I created a plugin.</p>
  
  <pre><code>class Moon_Layout_Append extends Zend_Controller_Plugin_Abstract{
  
   public function preDispatch($request){
  
  
    $layoutFile = APPLICATION_PATH."/Modules/".$request-&gt;module."/layout/".$request-&gt;action.".xml";
  
    $layout = new Zend_Config_Xml($layoutFile,'index');
  
  
   }
  
  }
  </code></pre>
  
  <p>the problem is...how do I access layout object to set content that I read from xml?</p>