ZF-7095: Zend_Application_Resource_Modules Example is wrong

Issue Type: Docs: Problem Created: 2009-06-23T05:40:32.000+0000 Last Updated: 2009-08-21T12:07:22.000+0000 Status: Resolved Fix version(s): - 1.9.2 (25/Aug/09)

Reporter: Matthijs van den Bos ( Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Application

Related issues: - ZF-7089



The Example (4.4) under 4.6.3 Zend_Application_Resource_Modules describes how to set some extra configuration per module. In the example the layout is set for the news module:```` The example gives the impression that you can set up things like layout and db per module, but as I pointed out in ZF-7089, module resources will always overwrite the default resources.

After Matthew's explanation in ZF-7089, I understand that this is expected behaviour. Module bootstraps are always loaded, for instance to set up routes prior to dispatch. They should not be used for setting up per-module resources.

I think the documentation should reflect this.


Posted by Matthew Weier O'Phinney (matthew) on 2009-06-23T07:53:41.000+0000

You can load module-specific resources. As noted, however, perhaps using "layout" as an example in the manual was a bad idea. For cases where the application bootstrap has already defined the resource, you should define a new resource in order to prevent collisions.

I'll update the documentation accordingly.

Posted by Matthew Weier O'Phinney (matthew) on 2009-08-21T12:07:22.000+0000

Removed the layout key from the examples; will release with 1.9.2.

Have you found an issue?

See the Overview section for more details.


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

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