Issues

ZF-8672: Zend_Loader_Autoloader_Resource model example throws exception

Issue Type: Docs: Problem Created: 2009-12-30T23:25:59.000+0000 Last Updated: 2011-02-18T19:36:58.000+0000 Status: Resolved Fix version(s): - 1.11.2 (30/Dec/10)

Reporter: Stanislav Malyshev (stas) Assignee: Ramon Henrique Ornelas (ramon) Tags: - Zend_Loader

Related issues: - ZF-10852

Attachments:

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.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts