I have Zend Framework 1.12 application with several modules. So far everything worked well. But I wanted to add mappers to my application and Zend Framework can not find mapper class.
Structure of the project:
-application
-modules
-api
-otms
-models
-Mapper
FormToOnix2.php
-FeedFile.php
Mapper file looks like:
class Otms_Model_Mapper_FormToOnix2
{
...
}
In application.ini I added "Otms_" prefix for autoloading:
autoloaderNamespaces.otms[] = "Otms_"
But when I try to create mapper object from controller
$test = new Otms_Model_Mapper_FormToOnix2();
I receive the following error message
include_once(Otms/Model/Mapper/FormToOnix2.php): failed to open stream: No such file or directory in <b>/cloudware/library/Zend/Loader.php</b> on line 146
At the same time if I try to create object of another Otms model, like :
$file = new Otms_Model_FeedFile();
Everything works fine. How to fix problem with mapper loading?