title: How do I reuse and override controller actions across two modules in Zend Framework
body: <p>I have a modular setup of Zend Framework currently with only 2 modules:</p>
  
  <pre><code>web
  mobile
  </code></pre>
  
  <p>The setup is as under:</p>
  
  <pre><code>applications
  --modules
  ----**web**
  ------controllers
  --------IndexController.php
  -----------function indexAction(){.......}
  -----------function pageAction(){......}
  ------models
  --------Model.php
  ------views
  --------scripts
  ----------index.phtml
  ----**mobile**
  ------controllers
  --------IndexController.php
  ------views
  --------scripts
  ----------index.phtml
  </code></pre>
  
  <p>I want to achieve code reuse in the <code>IndexController</code> in <code>mobile</code> module, by reusing <code>indexAction()</code> and <code>pageAction()</code> in <code>IndexController</code> of <strong><code>web</code></strong> module, and also add another method <strong><code>paperAction()</code></strong> in <code>**mobile**</code> module, that's only available to <code>mobile</code> module. Is there a way to do this without having the code copied in <code>IndexController.php</code> of <code>web</code> module in <code>mobile</code> module?</p>
  
  <p>Thanks</p>