Details
-
Type:
Docs: Improvement
-
Status:
Resolved
-
Priority:
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.
Ralph, is this the correct fix? If so, I will fix it in the ref guide.