I am going crazy trying to work out how to get a custom decorator on my form. I have read everything but theres no clear example of any out there. This is what i have so far.
in my html/index.php i have the line: set_include_path('.' . PATH_SEPARATOR . '../library/' . PATH_SEPARATOR . '../application/' . PATH_SEPARATOR . '../application/forms/' . PATH_SEPARATOR . '../application/models/' . PATH_SEPARATOR . get_include_path()); Zend_Form file in /application/forms/NewStaff.php: ... $this->addElementPrefixPath("YUI", "decorators/",'decorator'); ... $startDate = new Zend_Form_Element_Text ( 'startDate' ); $startDate->addDecorator('Date_Decorator'); ... Decorator class in /application/forms/decorators/Date_Decorator.php: class YUI_Date_Decorator extends Zend_Form_Decorator_Abstract { ...... public function render($content) { .... } } Works if i get rid of the addDecorator line, but otherwise always displays error: Warning: Plugin by name Date_Decorator was not found in the registry. in .. I have tried so many different combinations of filename's prefixs and everything. What am I doing wrong? -- View this message in context: http://www.nabble.com/Zend-Form-Decorator-tp18623761p18623761.html Sent from the Zend Framework mailing list archive at Nabble.com.