I'm confused. Did it work or did it not work after creating a module
bootstrap? Because that's how it's supposed to work. The module autoloader
is registered by the bootstrap and not the modules resource plugin, so
simply activating the plugin is not enough. If it didn't work, maybe your
bootstrap class name is wrong. The class name should be <Module>_Bootstrap
and the file should be named Bootstrap.php and live in the module directory.


   -- Mon


On Thu, Jan 14, 2010 at 8:37 PM, Simon R Jones <[email protected]>wrote:

> to partially answer my own question "resources.modules[] =" did work, not
> sure what I was doing.
>
> However, it appears only to work if I have a custom module Bootstrap, is
> that expected behaviour since its not clear in the docs? Unless I'm not
> reading it properly
>
> best wishes,
> Si
>
>
>
> On 14 Jan 2010, at 12:02, Simon R Jones wrote:
>
>  hi,
>>
>> I'm trying to get the resource autoloader working with Zend_App, my
>> application.ini has:
>>
>> resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
>> resources.modules[] =
>>
>> And I'm expecting that a class called Test_Model_User would map to
>> modules/test/models/User.php
>>
>> However, the class cannot be found. Looking at the code (v1.9.5) it
>> appears that the resource autoloader is only instantiated for a module if
>> that module has a custom Bootstrap which extends
>> Zend_Application_Module_Bootstrap. Tried that, still nothing.
>>
>> Am a little confused, since the docs suggest simply this will do:
>> resources.modules[] =
>>
>> Any help appreciated :)
>>
>> best wishes,
>> Si
>>
>>
>
>

Reply via email to