Zend Framework

Wrong naming of Word Filter

Details

  • Type: Docs:  Improvement Docs: Improvement
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: Zend_Filter_Inflector
  • Labels:
    None
  • Language:
    English

Description

In some places in the manual where Zend_Filter_Inflector is explained. There are pieces of example code tha tlook like this.

http://framework.zend.com/manual/en/zend.layout.advanced.html#zend.layout.advanced.inflector

$inflector->setRules(array(
':script' => array('CamelCaseToUnderscore'),
'suffix' => 'phtml'
));

This however triggers an error :

Zend_Loader_PluginLoader_Exception: Plugin by name CamelCaseToUnderscore was not found in the registry. in Zend\Loader\PluginLoader.php on line 370

Because the Filter 'CamelCaseToUnderscore is not present in the root of the Filter directory. It's inside a sub folder 'Word'. Prefixing CamelCaseToUnderscore with Word_ fixes this.

Activity

Hide
Wil Sinclair added a comment -

Ralph, is this the correct fix? If so, I will fix it in the ref guide.

Show
Wil Sinclair added a comment - Ralph, is this the correct fix? If so, I will fix it in the ref guide.
Hide
Matthew Weier O'Phinney added a comment -

fixed in trunk with r12891

Show
Matthew Weier O'Phinney added a comment - fixed in trunk with r12891

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: