Taki oto komunikat otrzymuję przy próbie stworzenia obiektu Users_Form_Register
Cytat
Fatal error: Class 'Users_Form_Register' not found in blabla\application\modules\users\controllers\IndexController.php

  1. $form = new Users_Form_Register();


Klasa formularza znajduje się w modules/users/forms/Register.php i nazywa się Users_Form_Register
modules/
--users/
----forms/
------Register.php

Domyślam się, że chodzi o autoloader i przestrzeń nazw klas.
W głównym bootstrapie dopisałem metodę
  1. function _initAutoloader() {
  2. $resourceLoader = new Zend_Loader_Autoloader_Resource(array(
  3. 'basePath' => 'modules/users',
  4. 'namespace' => 'Users',
  5. ),
  6. 'basePath' => 'modules/users/forms',
  7. 'namespace' => 'Forms',
  8. )
  9. );
  10. return $resourceLoader;
  11. }

efektu to nie zmienia

Rozwiązane
wystarczy dodać w configs/application.init w [production]:
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.modules[] = "users"