I have a question similar to this thread : [throwing-exceptions-from-model-view-controller-in-a-zend-framework-application][1]
I have a standard MVC structure like this:
/application
/myapp
/controllers
/forms
/models
/exceptions
Default.php (class Myapp_Exception_Default extends Zend_Exception)
And no matter what when I try to do:
throw new Myapp_Exception_Default();
I get :
Fatal error: Class 'Myapp_Exception_Default' not found
My question is how to make Zend find my custom Exceptions ? I didn’t find any configuration options to declare it.
You should have something like this:
With this content:
…
with this code
and then use