Hi,

Sorry about the no line breaks - html format took them out. I resent the
message with line breaks in. 

the directories are /controllers /models /views. Sorry for not writing this,
I was too hasty to get the question out there.

So, any suggestions?




Matthew Weier O'Phinney-3 wrote:
> 
> 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/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/quite-a-module-error%3A-file-was-not-found-tf3920323s16154.html#a11128042
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to