|
|||
|
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)' in /Users/valuedcustomer/Sites/phpweb20/include/Zend/Controller/Dispatcher/Standard.php:198 Stack trace: #0 /Users/valuedcustomer/Sites/phpweb20/include/Zend/Controller/Front.php(929): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 /Users/valuedcustomer/Sites/phpweb20/htdocs/index.php(7): Zend_Controller_Front->dispatch() #2 {main} thrown in /Users/valuedcustomer/Sites/phpweb20/include/Zend/Controller/Dispatcher/Standard.php on line 198 It's been rattling me and I need to figure this out to continue. ![]() |
|
|||
|
Quote:
the index.php Code:
<?php
require_once('Zend/Loader.php');
Zend_Loader::registerAutoload();
$controller = Zend_Controller_Front::getInstance();
$controller->setControllerDirectory('../include/Controllers');
$controller->dispatch();
?>
Code:
<?php
class IndexController extends CustomControllerAction
{
public function indexAction()
{
}
}
?>
Code:
<?php
class NewsController extends Zend_Controller_Action
{
public function indexAction()
{
echo 'News article index';
}
public function displayAction()
{
echo 'News article details';
}
}
?>
Code:
RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1
Last edited by shibuya : 01-24-2008 at 04:28 PM. |
|
|||
|
Quote:
![]() ![]() |
|
|||
|
That is the true error message, the first error message(in your first post) will be shown whenever you have ANY error in your ZF application and showExceptions turned off.
Now there is probably something wrong in your directory structure and therefore the display.phtml file cannot be found. From what I can see in your post display.phtml should be found in "views/scripts/news/display.phtml". If it's in the correct directory please post your full directory structure. |
|
|||
|
Quote:
![]() |
![]() |
| Thread Tools | |
| Display Modes | |
|
|