-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sudheer Satyanarayana wrote:

> Thanks for the response. I now have this in the
> application/modules/job/Bootstrap.php
> [code]
> class Job_Bootstrap extends Zend_Application_Module_Bootstrap
> {
>    protected function _initAuthAutoload()
>    {
>        $autoloader = new Zend_Application_Module_Autoloader(array(
>            'namespace' => 'Job_',
>            'basePath'   => APPLICATION_PATH . '/modules/job',
>            'resourceTypes' => array (
>                'form' => array(
>                    'path'           => 'forms',
>                    'namespace'  => 'Form',
>                ),
>                'model' => array(
>                    'path'           => 'models',
>                    'namespace'  => 'Model',
>                ),
>                'service' => array(
>                    'path'           => 'service',
>                    'namespace'  => 'Service',
>                )
>            )
>        ));
>        return $autoloader;
>    }
> 
> }
> [/code]

This shouldn't be required, this (and some other resources) is the
default for the resource autoloader.

> But still autoload does not work. The class Job_Bootstrap in the above
> file is never instantiated.

Have you got
resources.modules = ""
in your application.ini (or equivalent)? This causes the modules
resource to be instantiated, which is responsible for calling the
bootstrappers for all modules.

>>
>> I notice that  you have a default module inside your modules
>> directory. when Zend_Tool creates
>> a new project the default modules controllers, models, views are
>> located in

Yes, this is the recommended directory structure - default module in the
"application" directory (ie. not under the modules directory)

- --

Brenton Alker
PHP Developer - Brisbane, Australia

http://blog.tekerson.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkptVLoACgkQ7bkAtAithuvk6wCePDcvE/e6DhoVPeJ3Jyl9HR2L
jeYAoKnvQCCl/QD/mMl4sh6622pLMTQo
=TFK9
-----END PGP SIGNATURE-----

Reply via email to