ZF-8672: Zend_Loader_Autoloader_Resource model example throws exception
Description
The manual provides this example of how to add resource types:
$resourceLoader->addResourceType('acl', 'acls/', 'Acl') ->addResourceType('form', 'forms/', 'Form') ->addResourceType('model', 'models/');
In fact, the third type would throw an exception, since it needs namespace to define a new 'model' type.
Comments
Posted by Michael Ekoka (verysimple) on 2010-08-26T14:10:29.000+0000
I have a media module and I thought I could just name my models Media_Picture if I ignored the namespace argument as in ->addResourceType('model', 'models/'). This should definitely be fixed in the doc.
Posted by Ramon Henrique Ornelas (ramon) on 2011-02-18T19:36:10.000+0000
Fixed with the issue ZF-10852 in the version 1.11.2.