ZF-6302: Zend_Application_Resource_View redefine method init

Issue Type: Coding Standards Violation Created: 2009-04-15T06:42:48.000+0000 Last Updated: 2009-04-15T08:22:59.000+0000 Status: Resolved Fix version(s): Reporter: Alejandro HenrĂ­quez Lazo (ahenriquez) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Application

Related issues: Attachments:


The method init on this class must be clean, the current code would be moved to construct method.


Posted by Matthew Weier O'Phinney (matthew) on 2009-04-15T07:25:15.000+0000

The "init()" method of resources is what the bootstrap calls. Initialization of a resource is intended to occur here.

Additionally, please check to see that you have the most current revision -- getView() now initializes the view and passes options to it; init() retrieves the view from there.

Posted by Alejandro HenrĂ­quez Lazo (ahenriquez) on 2009-04-15T08:22:58.000+0000

Thank, for you answer, but i'm confused with init method , on framework is used as a complement of construct method.

Have you found an issue?

See the Overview section for more details.


© 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.