Zend Framework

Error in examples for section 7.10.5.1.1. and 7.10.5.1.3.

Details

  • Type: Docs:  Problem Docs: Problem
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0.0 RC1
  • Fix Version/s: 1.0.0 RC3
  • Component/s: Zend_Controller
  • Labels:
    None
  • Language:
    English

Description

The examples, which are almost the same, read :

$errors = $this->_getRequest('error_handler');

which should be :

$errors = $this->getRequest()->get('error_handler');

Activity

Hide
Bill Karwin added a comment -

Note: the sections are

  • 7.10.5.1.1. Using the ErrorHandler as a 404 Handler
  • 7.10.5.1.3. Error Controller Example

in source file Zend_Controller-Plugins-ErrorHandler.xml

Show
Bill Karwin added a comment - Note: the sections are
  • 7.10.5.1.1. Using the ErrorHandler as a 404 Handler
  • 7.10.5.1.3. Error Controller Example
in source file Zend_Controller-Plugins-ErrorHandler.xml
Hide
Matthew Weier O'Phinney added a comment -

Resolution is not:

$errors = $this->getRequest()->get('error_handler');

but instead:

$errors = $this->_getParam('error_handler');

Resolved in r5280. (1 mile of bugs!)

Show
Matthew Weier O'Phinney added a comment - Resolution is not:
$errors = $this->getRequest()->get('error_handler');
but instead:
$errors = $this->_getParam('error_handler');
Resolved in r5280. (1 mile of bugs!)
Hide
Wil Sinclair added a comment -

Updating to comply with new IT component conventions.

Show
Wil Sinclair added a comment - Updating to comply with new IT component conventions.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: