I have had a very similar problem reported to me, by someone who was
using my storefront example application:

http://code.google.com/p/zendframeworkstorefront/

I am using a copy of Matthew's prototype from the pastebin app, but
the error seems to be the same, the classes are loading but warnings
from Zend_Loader are reported. It like the classes are being loaded
twice, once successfully and the second time not.

I have not been able to reproduce this on my system here, the user
reported the error on a windows system, so I assumed it was either a
ZF version issue, OS issue or the fact I was using an older prototype.

When I get some time I will be moving the code to use ZLAR and
Zend_App so I will report back then, just thought I would chime in as
the error was so similar.

Thx

Keith

2009/2/26 awkaiser <[email protected]>:
>
>
> 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.
>
>



-- 
----------------------------------------------------------------------
[MuTe]
----------------------------------------------------------------------

Reply via email to