-- Vince42 <[EMAIL PROTECTED]> wrote (on Thursday, 11 December 2008, 03:23 AM +0100): > I used Zend_Form_Element as base class for my own elements. > > As I want to pass several options / arguments / properties / attributes > etc to the element during construction and afterwards, I thought about > using the setOptions() method (not setAttribs()) ... but then I wondered > > a) whether that is the preferred way to go and
yes. :) setOptions() will call setAttrib() if the key does not match another setter -- which gives you a nice, central location to set all options and attributes. > b) why there is no setOptions() method in Zend_Form_Element and There is, though. :) > c) why there is no Zend_Form_Element_Abstract Because it is itself a base class. All other elements are built on it. However, it can certainly be used standalone as well. > d) if i will ever understand the whole Framework completely :P Probably not. I don't even understand all of it. :) If you ever do, please let me know. :) -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/
