I checked out your Rob's link again (his help has been invaluable in the
past), but still come up empty. I did a little modification since I'm using
a modules directory instead of putting the ZF standard directories under my
application dir. Each module has a standard set of folders under them as
recommended in the Reference guide for using modules. Here is my updated
bootstrap function for autoloading (I've tried the membership namespace with
and without the underscore):
protected function _initAutoload()
{
$loader = new Zend_Application_Module_Autoloader(
array(
'namespace' => '',
'basePath' => APPLICATION_PATH . '/modules/default'),
array(
'namespace' => 'Membership_',
'basePath' => APPLICATION_PATH . '/modules/membership'));
return $loader;
}
I also think that since the code itself is proven to work locally, that it
should also work remotely. The things that would cause it to work locally
but not remotely include: case sensitivity and environment setup. My
.htaccess file is in the web-root, and looks like this:
RewriteEngine On
RewriteRule ^\.htaccess$ - [F]
RewriteCond %{REQUEST_URI} =""
RewriteRule ^.*$ /public/index.php [NC,L]
RewriteCond %{REQUEST_URI} !^/public/.*$
RewriteRule ^(.*)$ /public/$1
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^.*$ - [NC,L]
RewriteRule ^public/.*$ /public/index.php [NC,L]
The same rewrite rules are working locally with my application. Using the
base domain name will take me to the default index remotely, so I take that
to indicate that my include paths and routing through /public/index.php are
working properly.
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Problems-autoloading-modules-on-shared-hosting-tp2063729p2063957.html
Sent from the Zend Framework mailing list archive at Nabble.com.