Hi all,

This is working locally on an OSX machine in Eclipse.  Does not work when
loaded to a Godaddy hosted site.
The error I am getting is: 
"Fatal error: Class 'Membership_Form_Login' not found in
/home/content/s/h/a/shamik/html/application/modules/membership/views/helpers/UserDoorway.php
on line 27

I'm having a problem autoloading classes located under the modules
directory.  My directory structure is 
root
-application
--modules
---default
---membership
----forms
-----Login

all directories are lowercase as indicated.  My config file has the
following entries:

resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.frontController.defaultControllerName = "index"
resources.frontController.defaultAction = "index"
resources.frontController.defaultModule = "default"
resources.frontController.baseUrl = "/public"
resources.modules[] =

My only bootstrap file is under the application directory.  It has an init
function as follows:

protected function _initAutoload()
    {
        $loader = new Zend_Application_Module_Autoloader(array(
                'namespace' => '',
                'basePath' => APPLICATION_PATH));

        return $loader;
    }

The class that is trying to load is Membership_Form_Login.  I tested
creating a dummy class under the default module called Form_Login, and have
a new instance create early in the default index/index controller/action.  I
receive the same error as when trying to load the same class under the
membership module:

"Fatal error: Class 'Form_Test' not found in
/home/content/s/h/a/shamik/html/application/modules/default/controllers/IndexController.php
on line 16"

The application is correctly loading view helpers within the membership
module as indicated in the following bootstrap line:

$view->addHelperPath(APPLICATION_PATH . '/modules/membership/views/helpers',
'Membership_View_Helper');

The same code is working locally, so I do not think this is a setup issue. 
I have checked the path that the autoloader looks for the class in, and
aside from the server root it matches my path correctly.  I do not see any
case sensitivity issues as I have with other errors I got earlier in testing
on Godaddy.

Thank you,
shaun sandlin
-- 
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Problems-autoloading-modules-on-shared-hosting-tp2063729p2063729.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to