-- Flavio Curella <[EMAIL PROTECTED]> wrote (on Wednesday, 10 September 2008, 03:52 AM -0700): > I built a website, and everything works fine with browsers (FF, Safari), but > when trying accessing the same URLs with other user-agent (Flash, curl), > Zend throws an InvalidControllerSpedified error: > > Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message > 'Invalid controller specified (error)' in
The above message indicates that an exception was thrown somewhere in your code, but that you don't have a defined ErrorController to handle it. Create an ErrorController such as the one found in the QuickStart or the Zend_Controller QuickStart guide so you can either log or return the original exception. My guess is that you provided either a bad URL or you have code in your application that is environment specific (i.e., requires certain request headers to work). ZF's MVC works fine without browsers; if it didn't, Zend_Test_PHPUnit wouldn't work ;). > /Users/flavio/Sites/slowear/libs/Zend/Controller/Dispatcher/Standard.php:249 > Stack trace: > #0 /Users/flavio/Sites/slowear/libs/Zend/Controller/Front.php(946): > Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), > Object(Zend_Controller_Response_Http)) > > why can it works differently with conventional browsers and with other > user-agent? -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/
