View Single Post
  #1 (permalink)  
Old 03-07-2008, 12:22 AM
sawatdee sawatdee is offline
Junior Member
 
Join Date: Mar 2008
Posts: 12
Default Newbie, getting error from 'hello world' example

I followed the quick start directions exactly, copied them right out of the examples. But I get an error message that says "Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (error)' in /usr/local/apache2/htdocs/testsite.com/Zend/Controller/Dispatcher/Standard.php:198" with a full stack trace following.

Here are the files I created:

index.php
<?php
require_once 'Zend/Controller/Front.php';
Zend_Controller_Front::run ('/application/controllers');
?>

application/controllers/IndexController.php
<?php
require_once 'Zend/Controller/Action.php';
class IndexController extends Zend_Controller_Action
{
public function indexAction () {}
}
?>

application/controllers/ErrorController.php
<?php
require_once 'Zend/Controller/Action.php';
class ErrorController extends Zend_Controller_Action
{
public function errorAction () {}
}
?>

My Zend directory is at the document root, where index.php and the application directory is. I didn't include the views here because they probably aren't causing the problem.

Any help as to why this simple application gives me that error would be much appreciated. I've been looking at the same few lines of code all day and I'm stumped.
Reply With Quote