ZF-214: Inheritance and private

Issue Type: Bug Created: 2006-07-09T07:17:16.000+0000 Last Updated: 2007-07-05T14:43:13.000+0000 Status: Resolved Fix version(s): - 0.6.0 (16/Dec/06)

Reporter: Igor Petrovich (panza) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_View

Related issues: Attachments:


As I reported the issue on, there's a problem with the context in which the methods of inherited objects work. I was planing on having a single Zend_View to render all the files. So I was thinking of adding a $_globalvars variable where to store global vars, and reset the local $_vars variable together with $_path variable after each render() method call. The problem arrises with accessing those variables since they are processed with __set __get and other methods defined in parent class, I'd have to overwrite all those functions, which just looses the point of OOP. The problem would disappear by making those variables protected instead of private?


Posted by Matthew Weier O'Phinney (matthew) on 2006-11-07T11:53:26.000+0000

A clearVars() method was added in revision 1481, in response to [ZF-102]; this addreses the issue of resetting $_vars. To reset the $_path variable, there are already a variety of methods: setScriptPath() (overwrites the path to view scripts with the new value), setHelperPath() (same, for helper paths), and setFilterPath() (for filter paths).

Posted by Matthew Weier O'Phinney (matthew) on 2006-11-07T11:54:21.000+0000

Resetting $_vars request is a duplicate of [ZF-102], and other functionality requested already exists.

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.