Since I upgraded from 0.9 to 1.0 I am having uncaught exceptions. Here is my front controller:
Code:
$oFront = Zend_Controller_Front::getInstance();
$oFront->setParam('useDefaultControllerAlways', true);
Zend_Controller_Front::run("/path/to/controllers");
No matter what controller/action I navigate to I get the view rendered properly and then bellow this a "Fatal Error" Uncaught Exception:
File "IndexController.php" was loaded but class "Default_IndexController" was not found in the file
Why is it asking for a class named Default_IndexController? If I comment out the 'useDefaultControllerAlways' then I get:
Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (error)'
You may ask, why I am using that paramater? It's for 404 handling if a non-existent controller is specified in the URL (I have some code in index/index that redirects)
If I add an error controller (per
this thread) to output the exception, I get:
'Zend_View_Exception' with message 'script 'settings/index.phtml' not found in path'
Why is it looking for that? I have a view called "Default.php" there which IS outputting. So why is ZF now looking for another file?