Issues

ZF-9152: Zend_Tool Documentation Shows Function Call as Reference to Object Property

Issue Type: Docs: Problem Created: 2010-02-11T20:04:41.000+0000 Last Updated: 2010-11-02T16:05:54.000+0000 Status: Resolved Fix version(s): - 1.11.1 (30/Nov/10)

Reporter: Isaac F (isac1984) Assignee: Ramon Henrique Ornelas (ramon) Tags: - Zend_Tool

Related issues: Attachments:

Description

The documentation for extending Zend_Tool (http://framework.zend.com/manual/en/…) in the section that reviews using the response object rather than echo'ing, shows the method getResponse() as an object property in one of the code snippets. It is immediately below the section header "The response object", and follows the sentence "Rewritting our hello provider with this knowledge it looks like: ". I cut and pasted the code snippet below, but the offending bit is "$this->_registry->getResponse", which should be "$this->_registry->getResponse()"

  1. class My_Component_HelloProvider 2. extends Zend_Tool_Framework_Provider_Abstract 3. { 4. public function say() 5. { 6. $this->_registry->getResponse 7. ->appendContent("Hello from my provider!"); 8. } 9. }

Comments

Posted by Ramon Henrique Ornelas (ramon) on 2010-11-02T16:05:52.000+0000

Fixed in r23288 trunk, merged into 1.11 release branch r23289.

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