Hi,

Quite new to Zend and I cannot get a Hello World script to work.  As far as
I can tell I have set up the directory structure correctly and I am
including the Library folder correctly.  When trying to access the test site
I get an exception:

Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with
message 'Invalid controller specified (index)' in
/usr/local/share/ZendFramework/library/Zend/Controller/Dispatcher/Standard.php:241
Stack trace: #0
/usr/local/share/ZendFramework/library/Zend/Controller/Front.php(945):
Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http),
Object(Zend_Controller_Response_Http)) #1
/usr/local/www/vhosts/xxx/subdomains/xxx/httpdocs/index.php(18):
Zend_Controller_Front->dispatch() #2 {main} thrown in
/usr/local/share/ZendFramework/library/Zend/Controller/Dispatcher/Standard.php
on line 241

I'm using the following  code in my index.php file:

// Error Reporting
  error_reporting(E_ALL|E_STRICT);
  ini_set('display_errors','on');
  
  require_once 'Zend/Loader.php';
  
  Zend_Loader::loadClass('Zend_Controller_Front');
  
  
  // Get the front controller instance
  $front = Zend_Controller_Front::getInstance();
  $front->setControllerDirectory('../application/controllers');
  $front->throwExceptions(true);
  
  // GO!
  $front->dispatch();

And the following code in IndexController.php

class IndexController extends Zend_Controller_Action
{
    public function indexAction()
    {
    }
}
And the following structure:


  
application
    

        
controllers
          

              
IndexController.php
          

        
      
views
      
models
    

  
  
public
    

        
index.php
      
.htaccess
    

  

Zend Library is included as part of the php.ini file.

Any idea where I might be going wrong? I should point out that I'm testing
this on a subdomain e.g. http://subdomain.domain.com, although I'm not sure
how that would make a difference.


-- 
View this message in context: 
http://www.nabble.com/Newbie-HELP%21--Invalid-controller-specified-%28index%29--tp23837855p23837855.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to