First off, some linebreaks in this would help a lot.

-- Waigani <[EMAIL PROTECTED]> wrote
(on Thursday, 14 June 2007, 01:15 AM -0700):
> 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

addModuleDirectory looks for subdirectories named 'controllers' in each
module directory, not 'controller'. Similarly, the ViewRenderer is
expecting a 'views' subdirectory, not 'view'. This is most likely the
cause of the issues you're experiencing.

> (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???

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

Reply via email to