Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.10.1
-
Fix Version/s: 1.10.3
-
Component/s: Zend_Filter_Inflector
-
Labels:None
Description
Zend_Filter_Inflector:>setConfig(), problem to set the option 'filterPrefixPath'.
Zend_Filter_Inflector:>addFilterPrefixPath(), should be called before of Zend_Filter_Inflector:>addRules($value);
case
$options = array(
'target' => ':controller/:action',
'rules' => array(
':action' => 'Custom',
':controller' => 'Word_CamelCaseToDash'
),
'filterPrefixPath' => array('My_Filter_' => 'My/Filter/')
);
new Zend_Filter_Inflector(new Zend_Config($options));
Will cause an exception because the configuration of the path is after setting the 'rules'. See line 508 in Zend_Filter_Inflector.
Attachments
Issue Links
| This issue depends on: | ||||
| ZF-8997 | Zend_Filter_Inflector not supported array |
|
|
|
code reproduced in
ZF-9225.zipZF-9225.zip