I have placed my custom decorators in windows
application/modules/Tab/forms/decorators
My application works well on windows, but in linux zend cannot found my code in Zend/Forms/Decorators. (upper case F and D)
How can I set up auto loader for zend auto load my decorator?
(My custom decorator’s name is Tab_Forms_Decorators_Hr)
Since default path segment is Form/Decorator and class prefix segment is Form_Decorator (see Zend/Form.php source,
getPluginLoader()method ), the plural form is weird and the singular one should by used. TheFormsdirectory may be used for storing your own Forms models, so maybe some mis-configuration? You didn’t post the whole error…But this don’t solve your problem. Try using
addPrefixPath()to add your own path and prefix, like this (and adjust directories and classes names according to this):Note the path must begin in some place previously defined (in eg. _initAutoload() Bootstrap.php).