Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Not an Issue
-
Affects Version/s: 0.7.0
-
Fix Version/s: None
-
Component/s: Zend_Controller
-
Labels:None
Description
Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (index.php)' in c:\zf-tutorial\library\Zend\Controller\Dispatcher.php:159 Stack trace: #0 c:\zf-tutorial\library\Zend\Controller\Front.php(726): Zend_Controller_Dispatcher->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 c:\zf-tutorial\index.php(55): Zend_Controller_Front->dispatch() #2 {main} thrown in c:\zf-tutorial\library\Zend\Controller\Dispatcher.php on line 159
I could solve this problem by add
// Remove the .php from REQUEST_URI
if ($pos = strpos($requestUri, '.')) { $requestUri = substr($requestUri, 0, $pos); }
after line 531
in \library\Zend\Controller\Request\Http.php
But I don't have a big picture, does anybody have a better solution or consider this is not a issue?