View Single Post
  #14 (permalink)  
Old 02-08-2008, 08:30 AM
Arjan Arjan is offline
Junior Member
 
Join Date: Feb 2008
Posts: 3
Default

Quote:
Originally Posted by shibuya View Post
Can anyone pinpoint what the exact problem from this fatal error message?

Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (error)'
<snip>

It's been rattling me and I need to figure this out to continue.
Hey Shibuya,
I am having the same problems (appearently using the same book )

i did figure out something.

The problem lies in the CustomControllerAction.php

in the controllers (ie IndexController.php etc) you extend to the CustomControllerAction (class IndexController extends CustomControllerAction)
which give the fatal error.

if you replace CustomControllerAction and use the Zend_Controller_Action instead it does work as intended. ( class IndexController extends Zend_Controller_Action)

i know this isnt the valid way to do, and dont ask me why extending the customcontrolleraction doesnt work. i am lacking the indepth php knowledge for that

but perhaps some other people know what is wrong with the CustomControllerAction.php (code below)

Code:
<?php
class CustomControllerAction extends Zend_Controller_Action
{
public $db;
public function init()
{
$this->db = Zend_Registry::get('db');
}
}
?>
Reply With Quote