title: Zend Framework exception of invalid controller in netbeans
body: <p>i had created one project in localhost and all my requests are redirected to htdocs/index.php file. by link <a href="http://localhost/TestProject/" rel="nofollow">http://localhost/TestProject/</a>
  the code in index.php is</p>
  
  <pre><code>require_once 'Zend/Loader/Autoloader.php';
  Zend_Loader_Autoloader::getInstance();
  $controller = Zend_Controller_Front::getInstance();
  echo $controller-&gt;getControllerDirectory();
  $controller-&gt;setControllerDirectory('/var/www/TestProject/include/Controllers');
  $controller-&gt;dispatch();
  </code></pre>
  
  <p>all the controllers resides in include directory.
  i had created to controllers one in IndexController.php and other is TestController.php
  and in those files i had created two actions indexAction() and displayAction()</p>
  
  <p>here is code for IndexController.php</p>
  
  <pre><code>Class IndexController extends Zend_Controller_Action{
      public function indexAction(){
          echo "Index Index Jamla";
      }
      public function displayAction(){
          echo "Index Display Jamla";
      }
  }
  </code></pre>
  
  <p>now whenever i access <a href="http://localhost/TestProject/" rel="nofollow">http://localhost/TestProject/</a>
  it shows following exception</p>
  
  <pre><code>Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with 
  message 'Invalid controller specified (error)' in /usr/share/php/ 
  libzend-frameworkphp/Zend/Controller/Dispatcher/Standard.php:248 `enter code here`
  Stack trace: #0 /usr/share/php/libzend-framework-php/Zend/Controller/Front.php(954):
  Zend_Controller_Dispatcher_Standard-&gt;dispatch(Object(Zend_Controller_Request_Http),
  Object(Zend_Controller_Response_Http)) #1 /var/www/TestProject/htdocs/index.php(14):
  Zend_Controller_Front-&gt;dispatch() #2 {main} thrown in /usr/share/php/libzend-framework
  php/Zend/Controller/Dispatcher/Standard.php on line 248 
  </code></pre>
  
  <p>thnkx for the help in advance.</p>