[Solved] Zend Framework Data-Mapper Question
Posted: Sat May 01, 2010 6:54 am
So I'm trying to make the datamapper: Application_Model_UserMapper work as Application_Model_Mapper_User to make things look A LOT cleaner... I moved the UserMapper.php into "application/models/Mapper" and called it User.php and changed all the calls to Application_Model_Mapper_User and i still get "Fatal error: Class 'Application_Model_Mapper_Users' not found in /var/www/xxxxxx/application/controllers/IndexController.php on line 13"
So what should I do now? I thought the Zend_Loader was supposed to handle loading this file automaticly by the naming convention?
P.S.... This isn't my first ZF project but it's the first time I'm using it with a Data Mapper and I just started the project.... I'm liking the DM way of things though.
P.S. 2.0: I hate to start a new topic on this, but I need to know: I'm thinking about using the ZF Modules ability creating a default and admin module. If I define all the DbTables, Models, and Mappers in the default model, can they be accessed in the admin module or do I need to copy and paste them into the admin module?
So what should I do now? I thought the Zend_Loader was supposed to handle loading this file automaticly by the naming convention?
P.S.... This isn't my first ZF project but it's the first time I'm using it with a Data Mapper and I just started the project.... I'm liking the DM way of things though.
P.S. 2.0: I hate to start a new topic on this, but I need to know: I'm thinking about using the ZF Modules ability creating a default and admin module. If I define all the DbTables, Models, and Mappers in the default model, can they be accessed in the admin module or do I need to copy and paste them into the admin module?