title: How to call custom controller from index controller in Zend Framework
body: <p>I am newbie in Zend framework.And i have made sample project in netbeans.And it is working properly displaying index.phtml .But , I need to call my controller.What I have tried is below.</p>
  
  <pre><code>IndexController.php
  
  
  &lt;?php
  
  class IndexController extends Zend_Controller_Action
  {
  
      public function init()
      {
  
      }
  
      public function indexAction()
      {
          firstExample::indexAction();
      }    
  
  }
  </code></pre>
  
  <p>And I have deleted all the content of index.phtml(just a blank file) , coz i don't want to render this view.
  My custom controller is:</p>
  
  <pre><code>firstExampleController.php
  
  &lt;?php
  class firstExample extends Zend_Controller_Action{
      public function indexAction(){
          self::sum();
      }
  
      public function sum(){
          $this-&gt;view-&gt;x=2;
          $this-&gt;view-&gt;y=4;
          $this-&gt;view-&gt;sum=x + y;
      }
  }
  ?&gt;
  
  firstExample.phtml
  
  &lt;?php
  echo 'hi';
  echo $this-&gt;view-&gt;sum();
  ?&gt;
  </code></pre>
  
  <p>How to display sum method in firstExample.php.</p>
  
  <p>It just shows blank page after hitting below URL. </p>
  
  <pre><code>http://localhost/zendWithNetbeans/public/
  </code></pre>
  
  <p>I think after hitting on above URL , execution first goes to index.php in public folder.And I didn't change the content of index.php</p>