tfk wrote:
> 
>> Maybe I'm violating "best practices" for ZLAR, who knows. :) Hopefully
>> there
>> is a quick fix!
> 
> LGTM! :) I bet the module structure throws it off somehow, I don't
> know what dirname(__FILE__) in your example resolves to, e.g., is your
> "bootstrap" in root/app/modules/ or in /root/.
> 
> Cheers,
> Till
> 

I don't think that's it. ZLAR finds and loads my Model and DbTable classes
just fine. It's the secondary warnings from Zend_Loader that have me
scratching my head.

In the example I gave, __FILE__ would be
/application/modules/projects/controllers/IndexController.php (I'm
configuring ZLAR in the init() method).

My bootstrap is at /application/bootstrap.php and begins with these lines:

    defined('APPLICATION_PATH')
        or define('APPLICATION_PATH', dirname(__FILE__));

    defined('MODULE_PATH')
        or define('MODULE_PATH', APPLICATION_PATH . '/modules');

    defined('APPLICATION_ENVIRONMENT')
        or define('APPLICATION_ENVIRONMENT', 'development');

    defined('LIBRARY_PATH')
        or define('LIBRARY_PATH', APPLICATION_PATH . '/../library');

    $fc = Zend_Controller_Front::getInstance();
    $fc->addModuleDirectory(MODULE_PATH);

As you can see, the front controller is aware of my 'modules' directory.

Thanks for your attention,
August
-- 
View this message in context: 
http://www.nabble.com/Issue%3A-Resource-autoloading-with-Zend_Loader_Autoloader_Resource-%28incubator%29-tp22232795p22233691.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to