Hi,
it should be enough to give the module its own bootstrap like:
<?php
class Register_Bootstrap extends Zend_Application_Module_Bootstrap
{}
-----Ursprüngliche Nachricht-----
Von: i_banks [mailto:[email protected]]
Gesendet: Donnerstag, 7. Februar 2013 16:00
An: [email protected]
Betreff: [fw-general] Model Class Not Found
Back again. After solving the db adapter issue, now my Controller can't
locate my model class for some reason. I've done research all morning and it
apparently is a path autoloading issue. So far none of the solutions I've
googled are working. The error is *'Register_Model_Register' not found*.
Here's my file path:
application
/modules
/register
/controllers
- IndexController.php
/ models
- Register.php
- UserMapper.php
/DbTable
- User.php
Now the solution I thought would work, which is to load the following code
in the Bootstrap.php file, isn't working:
protected function _initResourceAutoLoad() {
$resourceloader = new Zend_Loader_Autoloader_Resource (array(
'namespace' => 'Register',
'basePath' => APPLICATION_PATH . '/modules/'
));
$resourceloader->addResourceType('model', 'models/', 'Model');
return $resourceloader;
}
Any thoughts? Thanks in advance.
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Model-Class-Not-Found-tp4659072.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]