-- Simon Mundy <[EMAIL PROTECTED]> wrote (on Friday, 14 March 2008, 01:09 PM +1100): > I've just created a small feature request for Zend_Form to add an 'init()' > method to the base class. I'd imagine it implemented the same way as it's > used for Zend_Controller_Action and Zend_Db_Table, as a 'safe' way to add > behaviours and logic to a form model when subclassing Zend_Form. Ideally it > would be called as the last step in the base __construct method.
I noted the issue this morning, and aded a note to it. For those who don't like to browse the issue tracker... Instead of calling init() as the *last* call in __construct(), I'm recommending it happen just prior to the call to loadDefaultDecorators(). This would prevent loading the default decorators in the case that you wish to set your own during init() -- saving some cycles and reducing overhead. Otherwise, I'm in agreement at this point over adding it, and plan to add it to each of the Zend_Form classes. -- Matthew Weier O'Phinney PHP Developer | [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/
