Hi,

rumeau wrote:
> I created a project with Zend Studio, wich creates the initial structure
> for the Zend Framework Application, an Initialize class is created, at
> this point everything works fine, but when i try to open a DB conection
> i get the following exception.
> 
> Fatal error: Uncaught exception 'Zend_Controller_Exception' with message 'No 
> default module defined for this application' in 
> /home/test/library/Zend/Controller/Dispatcher/Standard.php:380
> Stack trace:
> #0 /home/test/library/Zend/Controller/Dispatcher/Standard.php(203): 
> Zend_Controller_Dispatcher_Standard->getControllerClass(Object(Zend_Controller_Request_Http))
>  #1 /home/test/library/Zend/Controller/Dispatcher/Standard.php(237): 
> Zend_Controller_Dispatcher_Standard->isDispatchable(Object(Zend_Controller_Request_Http))
>  
> #2 /home/test/library/Zend/Controller/Front.php(934): 
> Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http),
>  Object(Zend_Controller_Response_Http)) 
> #3 /home/test/application/bootstrap.php(28): 
> Zend_Controller_Front->dispatch() 
> #4 /home/test/public_html/index.php(8): require('/home/test/a...') 
> #5 {main} thrown in 
> /home/test/library/Zend/Controller/Dispatcher/Standard.php on line 380
...

Sounds to me like that line is throwing an exception or some sort and
the framework is trying to handle it with the error controller, which it
can't find.

Try adding:

Zend_Controller_Front::getInstance()->throwExceptions(true);

to your bootstrap to see if you can get more information about the
initial exception (of course you will not want this setting on in
production)

-- 

Brenton Alker

http://blog.tekerson.com/

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to