-- Waigani <[EMAIL PROTECTED]> wrote
(on Thursday, 14 June 2007, 02:26 PM -0700):
> 
> getControllerDirectory() returns:
> 
> Array ( [default] => ./modules/default/controllers [staffprofiles] =>
> ./modules/staffprofiles/controllers );
> 
> The front controller recognises 'staffprofiles' as a module, 'demog' as a
> controller and 'add' as an action. It just can't find the
> demogController.php file?? That is really weird.

Rename it to DemogController.php and have it contain DemogController.
Note the case.


> Waigani wrote:
> > 
> > 
> > Well I've got quite a module error here. Been wrestling with it all week.
> > 
> > File structure:
> > 
> > index.php
> > /modules
> >             /default
> >                       /controller
> >                       /model
> >                       /view
> >             /staffprofiles
> >                       /controller
> >                       /model
> >                       /view
> > 
> > 
> > in index.php I have:
> > 
> > $frontController->throwExceptions(true)
> >                                 ->setBaseUrl($baseUrl)
> >                             ->addModuleDirectory('./modules')
> >                             ->dispatch();
> > 
> > 
> > Now default/demog/add ([module]/[controller]/[action]) works fine.
> > 
> > BUT: staffprofiles/demog/add returns the following error:
> > 
> > Fatal error: Uncaught exception 'Zend_Exception' with message 'File
> > "DemogController.php" was not found' in
> > /Users/jessemeek/Web_Dev/htdocs/framework/_library/Zend/Loader.php:155
> > Stack trace: #0
> > /Users/jessemeek/Web_Dev/htdocs/framework/_library/Zend/Loader.php(87):
> > Zend_Loader::loadFile('DemogController...', Array, true) #1
> > /Users/jessemeek/Web_Dev/htdocs/framework/hsweb/index.php(13):
> > Zend_Loader::loadClass('Staffprofiles_D...') #2 [internal function]:
> > __autoload('Staffprofiles_D...') #3
> > /Users/jessemeek/Web_Dev/htdocs/framework/_library/Zend/Controller/Dispatcher/Standard.php(269):
> > class_exists('Staffprofiles_D...') #4
> > /Users/jessemeek/Web_Dev/htdocs/framework/_library/Zend/Controller/Dispatcher/Standard.php(203):
> > Zend_Controller_Dispatcher_Standard->loadClass('DemogController') #5
> > /Users/jessemeek/Web_Dev/htdocs/framework/_library/Zend/Controller/Front.php(889):
> > Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http),
> > Object(Zend_Controller_Response_Http)) #6 /Users/jessemeek/Web_Dev/htdocs/
> > in /Users/jessemeek/Web_Dev/htdocs/framework/_library/Zend/Loader.php on
> > line 155
> > 
> > I've tried everything I can think of and suspect it may have something to
> > do with the __autoload function I'm using for to load the classes, but I
> > really don't know???
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/quite-a-module-error%3A-file-was-not-found-tf3920323s16154.html#a11129094
> Sent from the Zend Framework mailing list archive at Nabble.com.
> 

-- 
Matthew Weier O'Phinney
PHP Developer            | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to