Zend Framework

Wrong function name in documentation

Details

  • Type: Docs:  Improvement Docs: Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.7.8
  • Fix Version/s: 1.8.0
  • Component/s: Zend_View
  • Labels:
    None
  • Language:
    English

Description

The proposed viewhelper that should be implemented, mentioned in the performance-guide on

http://framework.zend.com/manual/en/performance.view.html#performance.view.action.model

implements a method named "direct()". Following the documentation of the view helpers, the method should be named after the name of the view helper class.

This is confusing and obviously wrong.

Activity

Hide
Matthew Weier O'Phinney added a comment -

Actually, in 1.6, we added a direct() method to Zend_View_Helper_Abstract. If that method is available, it will be used; otherwise it falls back to the method/classname mapping.

I'll update the docs to reflect this.

Show
Matthew Weier O'Phinney added a comment - Actually, in 1.6, we added a direct() method to Zend_View_Helper_Abstract. If that method is available, it will be used; otherwise it falls back to the method/classname mapping. I'll update the docs to reflect this.
Hide
Matthew Weier O'Phinney added a comment -

Mea culpa – while we added the direct() method to Zend_View_Helper_Abstract, we did not add handling of it to Zend_View_Abstract. I've updated the documentation in the performance guide to remove its usage.

Show
Matthew Weier O'Phinney added a comment - Mea culpa – while we added the direct() method to Zend_View_Helper_Abstract, we did not add handling of it to Zend_View_Abstract. I've updated the documentation in the performance guide to remove its usage.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: